Answers for "sort list java 8"

0

java stream order by property

List<String> sorted = original.stream().sorted((o1,o2)-> o1.compareTo(o2)).collect(Collectors.toList());
Posted by: Guest on June-02-2020
0

sort list java 8

Collections.sort(list); //acsending order default
Posted by: Guest on August-04-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language