declaration:
TreeMap<KeyType, ValueType> mapName;
creation: new TreeMap<KeyType, ValueType> ( );
put:
mapName.put(KeyType key, ValueType val)
get: mapName.get( KeyType key)
no cast to ValueType needed
length: mapName.size( )
looping: for( KeyType key : mapName.keySet( )) { // do whatever with key }