-
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
Remove all elements from HashSet example
With this example we are going to demonstrate how to remove all elements from a HashSet. In short, to remove…
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
HashSet size example
In this example we shall show you how to get the HashSet size, that is the number of all 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 » -
HashSet
Check for element existence in HashSet example
This is an example of how to check for an element existence in a HashSet. Checking if an element exists…
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 » -
Comparator
Sort ArrayList using Comparator example
With this example we are going to demonstrate how to sort an ArrayList using a Comparator. We are using Collections…
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
Tokenize String with StringTokenizer
In this example we shall show you how to tokenize a String with StringTokenizer. The StringTokenizer is used to break…
Read More »