how to change a value on a hashmap java code example Example: java hashmap set value myMap.put(key, value);