Maps keys to values.
Setting the value for a key
Checking a key's existence
The map offers a few methods to acquire the keys and values all together.
To get all the keys:
map.keySet();
To get all the values:
map.values();
To get both the keys and the values:
map.entrySet();
Last updated 6 years ago