how to set the value of the key in hashmap code example Example: java hashmap set value myMap.put(key, value);