Q:

update hashmap value while iterating

for (Map.Entry<Key, Long> entry : playerCooldowns.entrySet()) {
    entry.setValue(entry.getValue() - 20);
}
1

New to Communities?

Join the community