// call map.values() to get the collection of all the values in the map! // List<List<String>> result = new ArrayList<>(); // for(Map.Entry<String, List<String>> entry : map.entrySet()) { // result.add(entry.getValue()); // } returnnewArrayList(map.values()); } }