Java Reference
In-Depth Information
Tuesday
Monday
Sunday
Map
A
map
isagroupofkey/valuepairs(alsoknownasentries).Becausethekeyidentifies
anentry,amapcannotcontainduplicatekeys.Furthermore,eachkeycanmaptoatmost
onevalue.Mapsaredescribedbythe
Map
interface,whichhasnoparentinterface,and
whose generic type is
Map<K,V>
(
K
is the key's type;
V
is the value's type).