Значение Hashmap Android Java
int count = map.containsKey(word) ? map.get(word) : 0;
map.put(word, count + 1);
Grotesque Goose
int count = map.containsKey(word) ? map.get(word) : 0;
map.put(word, count + 1);