Util.HashMap.remove()
Signature
String remove (String mapID, String key)
Description
Removes a mapping for a specified key in a specified map.
If the map or the mapping is non-existent, returns null.
Parameters
Name | Type | Description |
mapID | String | The String ID of the map in which the mapping is removed. |
key | String | The String key for which the value is removed. |
Returns
Type | Description |
String | the value String removed, if it existed. |
Example
String result = HashMap.remove ("MyMap", "MyKey");
Result is:
result contains: "MyValue".