Java Arena

Module 31

Hash maps

Finding a value by a key instead of by an index. HashMap with its keys and values, put, get and getOrDefault, one value per key, containsKey and remove, tidy keys, objects as values, a hash map inside a class, counting, and going through the keys and values in an order you choose. MOOC section 8.2.

Steps

  1. Keys and values
  2. One value per key
  3. Objects as values
  4. A hash map inside a class
  5. Going through a hash map