core java
-
TreeSet

Obtain lowest and highest values from TreeSet example
With this example we are going to demonstrate how to obtain the lowest and highest values of a TreeSet. The…
Read More » -
TreeSet

Obtain head Set from TreeSet example
This is an example of how to obtain a head Set from a TreeSet in Java, using the headSet(E toElement)…
Read More » -
TreeSet

Remove element from TreeSet example
In this example we shall show you how to remove an element from a TreeSet. To remove an element from…
Read More » -
TreeSet

Remove all elements from TreeSet example
With this example we are going to demonstrate how to remove all elements from a TreeSet. The TreeSet API provides…
Read More » -
TreeSet

TreeSet size example
This is an example of how to get a TreeSet size, that is the number of elements that a TreeSet…
Read More » -
TreeSet

TreeSet Iterator example
In this example we shall show you how to get a TreeSet Iterator. To get a TreeSet Iterator one should…
Read More » -
TreeSet

Check for element existence in TreeSet example
With this example we are going to demonstrate how to check for an element existence in a TreeSet in Java.…
Read More » -
TreeSet

Convert TreeSet to Object array example
This is an example of how to convert a TreeSet to an Object array in Java. Converting a TreeSet to…
Read More » -
LinkedHashSet

Remove element from LinkedHashSet example
In this example we shall show you how to remove an element from a LinkedHashSet, using the remove(Object o) method…
Read More » -
LinkedHashSet

Remove all elements from LinkedHashSet example
With this example we are going to demonstrate how to remove all elements from a LinkedHashSet. The LinkedHashSet provides methods…
Read More »
