回答編集履歴
1
typo
answer
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
+
mine, statusの初期値は、どちらもnull。だから、NullPointerException。
|
1
2
|
```java
|
2
|
-
|
3
3
|
class test_s{
|
4
|
-
static String[] mine;
|
4
|
+
static String[] mine = null;
|
5
|
-
static int[] status;
|
5
|
+
static int[] status = null;
|
6
6
|
test_s(String[] mine,int[] status){
|
7
7
|
for(int i=0;i<mine.length;i++){
|
8
8
|
this.mine[i]=mine[i];
|