Class HashMap
The HashMap class is roughly equivalent to Hashtable, except that it is
unsynchronized and permits nulls.
This implementation provides constant-time performance for the basic operations
(get and put), assuming the hash function disperses the elements properly among
the buckets.
Class Hashtable
Hashtable ht;
/* loop through all the keys in a hashtable */
Enumeration<String> e = ht.keys();
while ( e.hasMoreElements() )
{
String element = e.nextElement();
}
last update:
January 10,
2011