HashMaps Flashcards
1
Q
HashMaps store items in
A
Key/Value pairs
2
Q
HashMaps can be accessed through an index of another type where
A
one object is used as a key (index) to another object (value).
HashMap <String, String> capitalCities = new HashMap <String, String>();
3
Q
A HashSet is a collection of items where
A
Every item is unique