The Hash Table Algorithm Steps

  1. Get the key-value pair
  2. hashify the key value (.hashCode())
  3. calculate the location in the hash map: hashify key / the size of the map
  4. Place key-value pair into the hashtable and check to see if load factor is compremized
  5. double size of key value pair according to load factor (if needed)

Example design

click here for more on hashmaps