Page 54 - Abstract Class, Interface & Struktur Data
P. 54

Java Hashmap












             •        In the ArrayList chapter, you learned that Arrays store





                      items as an ordered collection, and you have to access






                      them with an index number (int type). A HashMap





                      however, store items in "key/value" pairs, and you can





                      access them by an index of another type (e.g. a String).
   49   50   51   52   53   54   55   56   57   58   59