Hashtable.put
Class Overview | Class Members |
This Package |
All Packages
public synchronized Object put( Object key,
Object value )
Parameters
- key
- the hashtable key.
- value
- the value.
Returns
the previous value of the specified key in this hashtable,
or null if it did not have one.
Description
Maps the specified key to the specified
value in this hashtable. Neither the key nor the
value can be null.
The value can be retrieved by calling the get method
with a key that is equal to the original key.
Exceptions
NullPointerException
if the key or value is
null.
Overrides
put in class Dictionary
See Also
equals, get