Key-value pairs are stored in maps.
Tutorial Details:
Map interfaces
Map implemented by HashMap and TreeMap
SortedMap implemented by TreeMap.
Map.Entry which describes access methods to the key-value pairs.
Implementing classes
A number of classes implement the Map interface, including HashMap, TreeMap, LinkedHashMap, WeakHashMap, ConcurrentHashMap, and Properties. The most generally useful class is HashMap.
java.util.HashMap is implemented with a hash table. Access time is O(1). Entries are unsorted.
Rate Tutorial: http://www.roseindia.net/java/java-tips/data/collections/maps/map_interface.shtml
Read
Tutorial at: Click here to view the tutorial
Rate Tutorial: Java: Maps
View Tutorial: Java: Maps
Related
Tutorials:
|