回答編集履歴

2

コメント

2018/04/23 21:22

投稿

退会済みユーザー
test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  public static void main(String[] args) {
28
28
 
29
- # List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
29
+ // List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
30
30
 
31
31
  List<Integer> list = IntStream.rangeClosed(1, 9).boxed().collect(Collectors.toList());
32
32
 

1

boxed

2018/04/23 21:21

投稿

退会済みユーザー
test CHANGED
@@ -26,7 +26,9 @@
26
26
 
27
27
  public static void main(String[] args) {
28
28
 
29
- List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
29
+ # List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
30
+
31
+ List<Integer> list = IntStream.rangeClosed(1, 9).boxed().collect(Collectors.toList());
30
32
 
31
33
  Random r = new Random();
32
34