Put the Java code in order
} Arrays.sort(chars); } return new ArrayList<>(map.values()); public List<List<String>> groupAnagrams(String[] strs) {class Solution { Map<String, List<String>> map = new HashMap<>();} String key = new String(chars); for (String s : strs) { map.computeIfAbsent(key, k -> new ArrayList<>()).add(s); char[] chars = s.toCharArray();