-
LinkedHashMap
Get size of LinkedHashMap example
With this example we are going to demonstrate how to get the size of a LinkedHashMap, that is the number…
Read More » -
LinkedHashMap
Check value existence in LinkedHashMap example
With this example we are going to check a value existence in a LinkedHashMap. In short, to check if a…
Read More » -
HashSet
Remove element from HashSet example
In this example we shall show you how to remove an element from a HashSet if it exists in the…
Read More » -
HashSet
HashSet Iterator example
This is an example of how to obtain a HashSet Iterator, that is an iterator over the elements of the…
Read More » -
HashSet
Convert HashSet to Object array example
With this example we are going to demonstrate how to convert a HashSet to an Object array. In short, to…
Read More » -
Comparator
Sort Vector using Comparator example
In this example we shall show you how to sort a Vector using a Comparator. The Collections API provides methods…
Read More » -
StringTokenizer
StringTokenizer with specified delimiter
This is an example of how to use a StringTokenizer with a specified delimiter in order to break a String…
Read More » -
StringTokenizer
Reverse String with StringTokenizer
With this example we are going to demonstrate how to reverse a String with a StringTokenizer. The StringTokenizer is used…
Read More » -
ArrayList
Sort ArrayList example using Collections sort
In this example we shall show you how to sort an ArrayList using sort operation of the Collections API. To…
Read More » -
ArrayList
Replace ArrayList elements using index example
This is an example of how to replace elements in an ArrayList using index. Replacing elements in an ArrayList using…
Read More »