// "Replace with 'computeIfAbsent' method call" "true" import java.util.*; class Test{ int k; void ensureExists(Map> map, String key) { if (!map.containsKey(key)) { map.put(key, new ArrayList<>()); } } }