Java TOPIC 21 – JAVA COLLECTIONS III - MAPS LESSON NOTE INTRO A map data structure pairs two pieces of data together. The first is called the key and it
is unique in the map. The second is
called the value and it is not necessarily unique. The type of the key and value objects is specified using generics. IMPLEMENTATIONS Two commonly used implementations are HashMap
and TreeMap.
We will not worry about how they differ. You can research that on your own if you
are interested.
FUNCTIONALITY Here are the most important methods for map structures:
|
|||
|