[Solved] sort hashmap value of type list using java 8 [duplicate]

[ad_1]

Try below function

static void sort(Map<String, List<String>> stringListHashMap) {
        stringListHashMap.forEach((key, value) -> {
            Collections.sort(value);
        });
    }

[ad_2]

solved sort hashmap value of type list using java 8 [duplicate]