Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java stream list order lambda

List result = list.stream().sorted((o1, o2)->o1.getItem().getValue(). compareTo(o2.getItem().getValue())). collect(Collectors.toList());
Source by blog.burakkutbay.com #
 
PREVIOUS NEXT
Tagged: #java #stream #list #order #lambda
ADD COMMENT
Topic
Name
8+1 =