blob: 10d8cf33b7542baf1fd40055b3542e5b91c0ad05 [file]
// "Replace with 'merge' method call" "true"
import java.util.Map;
public class Main {
public void testMerge(Map<String, Integer> map, String key) {
Integer val = map.get(key);
if(val<caret> == null) {
map.put(key, 1)
} else {
map.put(key, 1 + val);
}
}
}