Hashtable
This class implements a hashtable, which maps keys to values.
Any non-null object can be used as a key or as a value.
Hashtable table = new Hashtable();
Object ob1 = new Object();
Object ob2 = new Object();
table.put("1",ob1);
table.put("2",ob2);
….
….
Object tmp = table.get("2");
Previous slide
Next slide
Back to first slide
View graphic version