In Java\'s hashmap:
map.put(key, new_value)
will update the entry of key=key with new_value if it exists in the hashmap.
What\'s the c