[Solved] sort hashmap value of type list using java 8 [duplicate]
Try below function static void sort(Map<String, List<String>> stringListHashMap) { stringListHashMap.forEach((key, value) -> { Collections.sort(value); }); } solved sort hashmap value of type list using java 8 [duplicate]