core java
-
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

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 » -
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 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 » -
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 » -
Collections

Copy Collection to another Collection example
With this example we are going to demonstrate how to copy a Collection to another Collection. In particular, we will…
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

Remove all mappings from HashMap example
This is an example of how to remove all mappings from a HashMap, that means removing all key value pairs…
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 » -
HashMap

Get size of HashMap example
With this example we are going to demonstrate how to get the size of a HashMap, that is the number…
Read More »
