HashMaps are collections of key-value pairs. In a way, they're like dictionaries: every key points to a value.

See that? We've created a HashMap that requires String-type keys and values.

Psst: HashMaps can be set to take whatever object we want, but we can't make it accept a primitive type.

Like an ArrayList, a HashMap can't use primitive types.