public void clear(){
  while (queue.poll() != null)   ;
  modCount++;
  Arrays.fill(table,null);
  size=0;
  while (queue.poll() != null)   ;
}

public void clear ( ) { while ( queue . poll ( ) != null ) ; modCount ++ ; Arrays . fill ( table , null ) ; size = 0 ; while ( queue . poll ( ) != null ) ; }
removes all of the mappings from this map . the map will be empty after this call returns .
