return m.put(key, ((m.get(key) == null) ? 1 : (m.get(key) + 1)));
int count; Integer countI = (Integer) map.get(key); if (countI == null) count = 0; else { count = countI; map.put(key, count + n); ...
Integer count = map.get(key); if (count == null) { map.put(key, 1); } else { map.put(key, count + 1);
HashMap map2 = (HashMap) map.get(key1); if (map2 == null) { map2 = new HashMap(); map.put(key1, map2); incrementHashMap(map2, key2, n);