Java Collection Tutorial - HashSet Example








Constructor

  1. Java HashSet() Constructor
  2. Java HashSet(Collection c) Constructor
  3. Java HashSet(int initialCapacity) Constructor
  4. Java HashSet(int initialCapacity, float loadFactor) Constructor




Method

  1. Java HashSet.add(E e)
  2. Java HashSet.clear()
  3. Java HashSet.clone()
  4. Java HashSet.contains(Object o)
  5. Java HashSet.isEmpty()
  6. Java HashSet.iterator()
  7. Java HashSet.remove(Object o)
  8. Java HashSet.size()