code: public void clear() {
          modCount++;
          Object[] tab = table;
          for (int i = 0; i < tab.length; i++)
              tab[i] = null;
          size = 0;
      }
docs: Removes all of the mappings from this map.
  The map will be empty after this call returns.