how to replace a nomber in hash hashset in java code example Example: java hashmap set value myMap.put(key, value);