Tree and Hash Set Classes

8. TreeSet and HashSet Classes
  • boolean add(E x)
  • boolean contains(Object x)
  • Iterator<E> iterator()
  • boolean remove(Object x),
  • int size()