DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
1+4 =
Submit