-
concurrent
Reentrant ReadWriteLock example of value calculator
This is an example of how to use a ReentrantReadWriteLock of a value calculator. We have implemented a method that…
Read More » -
concurrent
Exchanger example passing logs to a background logger
With this example we are going to demonstrate how to create an Exchanger passing logs to a background logger. We…
Read More » -
Preferences
Read preferences from user space
In this example we shall show you how to read the Preferences from user space. To read the Preferences from…
Read More » -
XPath
Find elements by content with XPath
This is an example of how to find elements by content using XPath. The XPath language provides a simple, concise…
Read More » -
XPath
Find elements by absolute location with XPath
With this example we are going to demonstrate how to find elements by absolute location in XPath. The XPath language…
Read More » -
DOM
List all attributes of DOM element
In this example we shall show you how to list all attributes of a DOM element in Java. We have implemented…
Read More » -
DOM
Add attribute in DOM element
This is an example of how to add an attribute in a DOM element. We have implemented a method, that…
Read More » -
DOM
Remove node from DOM document
With this example we are going to demonstrate how to remove a Node from a DOM Document. We have implemented…
Read More » -
DOM
Add text node to DOM document
In this example we shall show you how to add a Text Node to a DOM Document. We have implemented…
Read More » -
DOM
Add comment to DOM document
This is an example of how to add comments to a DOM Document. We have implemented a method, that is void…
Read More »