Source
List lists = Arrays.asList(3, 1, 5, 2, 4);
lists.stream().sorted().forEach(System.out::println);
Output
1
2
3
4
5
備忘録
Source
List lists = Arrays.asList(3, 1, 5, 2, 4);
lists.stream().sorted().forEach(System.out::println);
Output
1
2
3
4
5