質問編集履歴
2
文法を再修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -18,9 +18,9 @@
|
|
18
18
|
|
19
19
|
```java
|
20
20
|
|
21
|
-
public class Array
|
21
|
+
public class Array{
|
22
22
|
|
23
|
-
public static void main(String[] args
|
23
|
+
public static void main(String[] args){
|
24
24
|
|
25
25
|
int[] array = {100,200,300};
|
26
26
|
|
@@ -70,9 +70,9 @@
|
|
70
70
|
|
71
71
|
```java
|
72
72
|
|
73
|
-
public class Array
|
73
|
+
public class Array{
|
74
74
|
|
75
|
-
public static void main(String[] args
|
75
|
+
public static void main(String[] args){
|
76
76
|
|
77
77
|
int[] array = {100,200,300};
|
78
78
|
|
@@ -92,7 +92,7 @@
|
|
92
92
|
|
93
93
|
public static void array_change(int[] array){
|
94
94
|
|
95
|
-
|
95
|
+
for(int i : array){
|
96
96
|
|
97
97
|
i ++;
|
98
98
|
|
1
文法を修正しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -31,6 +31,8 @@
|
|
31
31
|
for(int i : array){
|
32
32
|
|
33
33
|
System.out.println(i);
|
34
|
+
|
35
|
+
}
|
34
36
|
|
35
37
|
}
|
36
38
|
|
@@ -82,6 +84,8 @@
|
|
82
84
|
|
83
85
|
System.out.println(i);
|
84
86
|
|
87
|
+
}
|
88
|
+
|
85
89
|
}
|
86
90
|
|
87
91
|
|