Java HashSet
The following tutorials cover methods of the HashSet class.
- Java HashSet – add() Add element to HashSet.
- Java HashSet – clear() Remove all the elements from HashSet.
- Java HashSet – clone() Make a shallow copy the HashSet.
- Java HashSet – contains() Check if the HashSet contains specific element.
- Java HashSet – isEmpty() Check if the HashSet is empty.
- Java HashSet – iterator() Get at iterator for the elements in HashSet.
- Java HashSet – remove() Remove specific element from the HashSet.
- Java HashSet – size() Get the size of HashSet.
- Java HashSet – spliterator() Creates a late-binding and fail-fast Spliterator over the elements in the HashSet.