change value of key in hashmao android code example Example: java hashmap set value myMap.put(key, value);