I want to convert Map to List with each map entry - to 1 entry in the list as \"key - value\"
Map
List
I search
List list = map.entrySet() .stream() .map(entry -> entry.getKey() + "-" + entry.getValue()) .sorted() .collect(Collectors.toList());