CS 1301 – Ch 6, Handout 1

In a Map, the keys are a Set (so no duplicate keys are allowed) and the values are a Collection (so duplicates could exist.In other words, different keys could map to the same value). In Java, the . Map . interface is parallel to the . Collection . interface (i.e. not a sub-interface) as shown in the diagrams below. ................
................