PPT Slide
Method Summary for Interface Set
boolean add(Object o) Adds the specified element to this set if it is not already present (optional operation).
boolean addAll(Collection c) Adds all of the elements in the specified collection to this set if they're not already present (optional operation).
void clear() Removes all of the elements from this set (optional operation).
boolean contains(Object o) Returns true if this set contains the specified element.
boolean containsAll(Collection c) Returns true if this set contains all of the elements of the specified collection.