I have this solution to add "c" to my map, but is there another way to do what I want in one line?
Map<Integer, List<String>> map = new HashMap<>();
List<String> list = new ArrayList<>();
list.add("a");
list.add("b");
map.put(1, list);
list.add("c");
map.put(1, list);