// "Replace with 'replaceAll()' call" "true" import java.util.HashMap; import java.util.Map; class Main { public void test() { Map map = new HashMap<>(); String defaultValue = "42"; map.put("foo", "bar"); map.replaceAll((k, v) -> k + defaultValue + "baz"); } }