Util.HashMap.put()
Signature
put(String mapID, String key, Object value)
Description
Maps an object for a specified key in a specified map.
If the map is non-existent, returns null.
Parameters
Name | Type | Description |
mapID | String | The String ID of the map in which the mapping is added. |
key | String | The String key for which the value is mapped. |
value | String | The String value to be added. |
Returns
Type | Description |
String | value . |
Example
String result = HashMap.put ("MyMap", "MyKey", "MyValue");
Result is:
result contains: "MyValue".