Data Types


  • Following data types are available in packege util.
Class DescriptionPut FunctionGet Function
Vector List or expendible arrayaddElement(obj) elementAt(i)
Stack FIFO extension for Vector push(obj) pop()
Hashtable Array with Object's as key instead of indizes put(key, obj) get(key)
Properties Key-Strings and IO support. (System Properties)put(key, obj) get(key)
  • Retrieving Objects from these types require casting.
    	String string = (String) vector.elementAt(1);
    
  • Generalized loop mechanism with Enumeration.

Java Tutorial - Standard Classes Jens Trapp, 1997