public void clear(){
  elements=0;
  for (int ix=0; ix < objects.length; ix++)   objects[ix]=null;
  freecells=objects.length;
  modCount++;
}

public void clear ( ) { elements = 0 ; for ( int ix = 0 ; ix < objects . length ; ix ++ ) objects [ ix ] = null ; freecells = objects . length ; modCount ++ ; }
removes all of the elements from this set .
