HashMaps Flashcards

1
Q

HashMaps store items in

A

Key/Value pairs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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>();

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A HashSet is a collection of items where

A

Every item is unique

How well did you know this?
1
Not at all
2
3
4
5
Perfectly