Dictionary.put

Dictionary.put

Class Overview | Class Members | This Package | All Packages

Syntax
public abstract Object put( Object key, Object value )
Parameters
key
the hashtable key.
value
the value.
Returns
the previous value to which the key was mapped in this dictionary, or null if the key did not have a previous mapping.
Description
Maps the specified key to the specified value in this dictionary. 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.
See Also
equals, get