Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to sort a collection using stream

List<String> sortedList = list.stream().sorted().collect(Collectors.toList());
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #sort #collection #stream
ADD COMMENT
Topic
Name
1+4 =