-
Collections

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

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

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

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

Check value existence in HashMap example
In this example we shall show you how to check a value existence in HashMap. To check if a value…
Read More » -
LinkedList

Search elements in LinkedList example
This is an example of how to search the elements in a LinkedList. Searching the elements in a LinkedList implies…
Read More » -
LinkedList

Remove element at index from LinkedList example
With this example we are going to demonstrate how to remove an element at a specific index from a LinkedList.…
Read More » -
LinkedList

Remove first and last element from LinkedList example
In this example we shall show you how to remove the first and the last element of a LinkedList. To…
Read More »
