Add, look up, remove, and loop through key/value pairs. Every method operates on the key — that's the whole point of a map.
put(key, value), get(key), remove(key), containsKey(key). If you want to loop through all entries, use values(), keySet(), or entrySet() — three different views of the same map.
get("OK") on a map without an "OK" key returns null — not an error. If you try to use the returned value immediately, you'll hit a NullPointerException.
Tip: the list you see above won't always match insertion order — HashMaps use bucket order. If order matters, use a LinkedHashMap or a List instead.