-
logging
Write Log entries to log file
With this example we are going to demonstrate how to write Log entries to a log file. In short, to…
Read More » -
Collections
Shuffle List elements example
In this example we shall show you how to shuffle a List’s elements. This is provided by the shuffle(List list)…
Read More » -
Collections
Replace specific element of List example
This is an example of how to replace a specific element of a List. We will use the replaceAll(List list,…
Read More » -
Collections
Binary search List example
With this example we are going to demonstrate how to Binary search a List. We will use the binarySearch(List list,…
Read More » -
Collections
Get Synchronized Set example
In this example we shall show you how to get a Synchronized Set. We are using a HashSet, but the…
Read More » -
Collections
Get Synchronized List from ArrayList example
This is an example of how to get a synchronized List from an ArrayList. The Collections class provides us with…
Read More » -
Collections
Find minimum and maximum elements of Collection example
With this example we are going to demonstrate how to find minimum and maximum elements of a Collection. We are…
Read More » -
Collections
Create ArrayList from Enumeration example
In this example we shall show you how to create an ArrayList from an Enumeration. We will use a Vector…
Read More » -
HashMap
Remove mapping from HashMap example
This is an example of how to remove mapping from a HashMap, that is removing a key value pair from…
Read More » -
HashMap
HashMap Iterator example
In this example we shall show you how to use a HashMap Iterator. To use a HashMap one should perform…
Read More »