Created
May 13, 2021 07:21
-
-
Save forketyfork/7d1757ddcdc053fb72bbf180f7df2451 to your computer and use it in GitHub Desktop.
Revisions
-
forketyfork created this gist
May 13, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ var strings = List.of("aaa", "bbb", "ddd", "ccc", "aba"); var sortedStrings = strings.stream().sorted().toList(); System.out.println(sortedStrings); // => [aaa, aba, bbb, ccc, ddd]