質問編集履歴
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
boolean tenki=true;
|
34
34
|
|
35
|
-
boolean tenki =false
|
35
|
+
boolean tenki =false;
|
36
36
|
|
37
37
|
}catch(IOException e){
|
38
38
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,6 +16,8 @@
|
|
16
16
|
|
17
17
|
import java.util.Scanner;
|
18
18
|
|
19
|
+
import java.io.*;
|
20
|
+
|
19
21
|
public class main{
|
20
22
|
|
21
23
|
public static void main(String[]args){
|
@@ -25,6 +27,20 @@
|
|
25
27
|
boolean tf=sc.nextBoolean();
|
26
28
|
|
27
29
|
|
30
|
+
|
31
|
+
try{
|
32
|
+
|
33
|
+
boolean tenki=true;
|
34
|
+
|
35
|
+
boolean tenki =false
|
36
|
+
|
37
|
+
}catch(IOException e){
|
38
|
+
|
39
|
+
System.out.println(“エラーが発生しました。”);
|
40
|
+
|
41
|
+
}
|
42
|
+
|
43
|
+
|
28
44
|
|
29
45
|
boolean tenki=tf;
|
30
46
|
|
@@ -52,6 +68,12 @@
|
|
52
68
|
|
53
69
|
|
54
70
|
|
71
|
+
変数tenkiはすでにmain(String[])で定義されています
|
72
|
+
|
73
|
+
boolean tenki=false;
|
74
|
+
|
75
|
+
|
76
|
+
|
55
77
|
### 補足情報(FW/ツールのバージョンなど)
|
56
78
|
|
57
79
|
|