core java
-
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
Semaphores example limiting URL connections
In this example we shall show you how to use a Semaphore for limiting URL connections. We have implemented a…
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
Store preferences to user space
This is an example of how to store Preferences to user space. The Preferences class allows applications to store and retrieve…
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 id with XPath
With this example we are going to demonstrate how to find elements by Id using XPath. The XPath language provides…
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 attributes with XPath
In this example we shall show you how to find elements by attributes using XPath. The XPath language provides a…
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
Visit all elements in DOM document
This is an example of how to visit all elements in a DOM Document. A DOM is a standard tree structure,…
Read More »