回答編集履歴
1
スクリプトの書き直し
test
CHANGED
@@ -8,11 +8,11 @@
|
|
8
8
|
|
9
9
|
int[] reR = intent.getIntArrayExtra("result");
|
10
10
|
|
11
|
+
if(reR.length == 3){//要素の数が3であれば3つ表示
|
12
|
+
|
11
|
-
|
13
|
+
if(n>reR[0]){//45%(一回目)
|
12
14
|
|
13
15
|
showNetaN(date);
|
14
|
-
|
15
|
-
if(reR.length == 3){//要素の数が3であれば3つ表示
|
16
16
|
|
17
17
|
}else if(n<=reR[0] && r>reR[0]){//35%
|
18
18
|
|
@@ -64,6 +64,22 @@
|
|
64
64
|
|
65
65
|
}
|
66
66
|
|
67
|
+
if(reR.length == 1){//要素の数が1であれば1つ表示
|
68
|
+
|
69
|
+
if(n>reR[0]){//45%(一回目)
|
70
|
+
|
71
|
+
showNetaN(date);
|
72
|
+
|
73
|
+
}else if(n<=reR[0] && r>reR[0]){//35%
|
74
|
+
|
75
|
+
showNetaR(date);
|
76
|
+
|
77
|
+
}else if(r<=reR[0]&& s>reR[0]){//15%
|
78
|
+
|
79
|
+
showNetaS(date);
|
80
|
+
|
81
|
+
}
|
82
|
+
|
67
83
|
}
|
68
84
|
|
69
85
|
```
|