Java Development
-
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 » -
Replace all elements of List example
In this example we shall show you how to replace all elements of a List. We will use the fill(List…
Read More » -
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 » -
Get unmodifiable Collection
This is an example of how to get an unmodifiable Collection. The same API applies to any type of Collection…
Read More » -
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 » -
Get Synchronized Map example
With this example we are going to demonstrate how to get a synchronized Map. We are using a HashMAp as…
Read More » -
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 » -
Get Enumeration from Collection example
In this example we shall show you how to get an Enumeration from a Collection. We are using an ArrayList,…
Read More » -
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 » -
Create List of n copies of an Object example
This is an example of how to create a List of n copies of an Object. We will use the…
Read More »