Hashtables
import java.util.Hashtable;
Hashtable ht = new Hashtable ();
String key = “Christopher Columbus”;
Integer value = new Integer(1492);
ht.put(key, value);
Integer year = ht.get(key);
ht.remove(key)
int theSize = ht.size();
Enumeration enum = ht.elements();
Enumeration keys = ht.keys();
Previous slide
Next slide
Back to first slide
View graphic version