回答編集履歴
1
rangeClosedに書き換え
test
CHANGED
@@ -2,4 +2,10 @@
|
|
2
2
|
|
3
3
|
|
4
4
|
|
5
|
+
```java
|
6
|
+
|
7
|
+
// 1~100まで
|
8
|
+
|
5
|
-
|
9
|
+
int[] arr = IntStream.rangeClosed(1, 100).toArray();
|
10
|
+
|
11
|
+
```
|