回答編集履歴
2
コメント
answer
CHANGED
@@ -12,7 +12,7 @@
|
|
12
12
|
class Ideone
|
13
13
|
{
|
14
14
|
public static void main(String[] args) {
|
15
|
-
|
15
|
+
// List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
|
16
16
|
List<Integer> list = IntStream.rangeClosed(1, 9).boxed().collect(Collectors.toList());
|
17
17
|
Random r = new Random();
|
18
18
|
int[][] matrix = new int[3][3];
|
1
boxed
answer
CHANGED
@@ -12,7 +12,8 @@
|
|
12
12
|
class Ideone
|
13
13
|
{
|
14
14
|
public static void main(String[] args) {
|
15
|
-
List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
|
15
|
+
# List<Integer> list = IntStream.rangeClosed(1, 9).mapToObj(Integer::valueOf).collect(Collectors.toList());
|
16
|
+
List<Integer> list = IntStream.rangeClosed(1, 9).boxed().collect(Collectors.toList());
|
16
17
|
Random r = new Random();
|
17
18
|
int[][] matrix = new int[3][3];
|
18
19
|
for (int i = 0; i < 3; i++) {
|