@Override public void clear(){
  if (size != 0) {
    Arrays.fill(table,null);
    entryForNullKey=null;
    modCount++;
    size=0;
  }
}

@ Override public void clear ( ) { if ( size != 0 ) { Arrays . fill ( table , null ) ; entryForNullKey = null ; modCount ++ ; size = 0 ; } }
removes all mappings from this hash map , leaving it empty .
