PPT Slide
Method Summary for HashSet
boolean add(Object o) Adds the specified element to this set if it is not already present.
void clear() Removes all of the elements from this set.
Object clone() Returns a shallow copy of this HashSet instance: the elements themselves are not cloned.
boolean contains(Object o) Returns true if this set contains the specified element.
boolean isEmpty() Returns true if this set contains no elements.
boolean remove(Object o) Removes the given element from this set if it is present.
int size() Returns the number of elements in this set (its cardinality).