void (EntryIterationBug other) { for (Map.Entry<String, Double> entry : other.map.entrySet()) { String s = entry.getKey(); if (map.containsKey(s)) { map.put(s, map.get(s) + entry.getValue()); } else { map.put(s, entry.getValue()); } } }