質問編集履歴
1
インデントど
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,31 +30,31 @@
|
|
30
30
|
|
31
31
|
class Main {
|
32
32
|
|
33
|
-
public static void main(String[] args) {
|
33
|
+
public static void main(String[] args) {
|
34
34
|
|
35
|
-
String a = "hello world";
|
35
|
+
String a = "hello world";
|
36
36
|
|
37
|
-
int b = 1;
|
37
|
+
int b = 1;
|
38
38
|
|
39
|
-
String bar[] = new String[2];
|
39
|
+
String bar[] = new String[2];
|
40
40
|
|
41
|
-
bar[0] = "bar1";
|
41
|
+
bar[0] = "bar1";
|
42
42
|
|
43
|
-
bar[1] = "bar2";
|
43
|
+
bar[1] = "bar2";
|
44
44
|
|
45
45
|
|
46
46
|
|
47
|
-
System.out.println("aには"+ a);
|
47
|
+
System.out.println("aには"+ a);
|
48
48
|
|
49
|
-
System.out.println("bには"+ b);
|
49
|
+
System.out.println("bには"+ b);
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
-
System.out.println(bar[0]);
|
53
|
+
System.out.println(bar[0]);
|
54
54
|
|
55
|
-
System.out.println(bar[1]);
|
55
|
+
System.out.println(bar[1]);
|
56
56
|
|
57
|
-
}
|
57
|
+
}
|
58
58
|
|
59
59
|
}
|
60
60
|
|
@@ -66,19 +66,19 @@
|
|
66
66
|
|
67
67
|
class Main {
|
68
68
|
|
69
|
-
public static void main(String args[]){
|
69
|
+
public static void main(String args[]){
|
70
70
|
|
71
|
-
hoge(1, 3, "!");
|
71
|
+
hoge(1, 3, "!");
|
72
72
|
|
73
|
-
}
|
73
|
+
}
|
74
74
|
|
75
75
|
|
76
76
|
|
77
|
-
public static void hoge(int a, int b, String c){
|
77
|
+
public static void hoge(int a, int b, String c){
|
78
78
|
|
79
|
-
System.out.println(a + b + "です"+ c);
|
79
|
+
System.out.println(a + b + "です"+ c);
|
80
80
|
|
81
|
-
}
|
81
|
+
}
|
82
82
|
|
83
83
|
}
|
84
84
|
|
@@ -92,33 +92,33 @@
|
|
92
92
|
|
93
93
|
class Main {
|
94
94
|
|
95
|
-
public static void main(String[] args) {
|
95
|
+
public static void main(String[] args) {
|
96
96
|
|
97
|
-
System.out.println("キーボードから入力してください");
|
97
|
+
System.out.println("キーボードから入力してください");
|
98
98
|
|
99
99
|
|
100
100
|
|
101
|
-
Scanner scan = new Scanner(System.in);
|
101
|
+
Scanner scan = new Scanner(System.in);
|
102
102
|
|
103
|
-
String str = scan.next();
|
103
|
+
String str = scan.next();
|
104
104
|
|
105
105
|
|
106
106
|
|
107
|
-
if(str.equa("朝")) {
|
107
|
+
if(str.equa("朝")) {
|
108
108
|
|
109
|
-
System.out.println("
|
109
|
+
System.out.println("おはよう");
|
110
110
|
|
111
|
-
} else if(str.equa("夜")) {
|
111
|
+
} else if(str.equa("夜")) {
|
112
112
|
|
113
|
-
System.out.println("こんばんは");
|
113
|
+
System.out.println("こんばんは");
|
114
114
|
|
115
|
-
} else {
|
115
|
+
} else {
|
116
116
|
|
117
|
-
System.out.println("朝か夜を入力してね");
|
117
|
+
System.out.println("朝か夜を入力してね");
|
118
118
|
|
119
|
-
}
|
119
|
+
}
|
120
120
|
|
121
|
-
}
|
121
|
+
}
|
122
122
|
|
123
123
|
}
|
124
124
|
|
@@ -130,15 +130,15 @@
|
|
130
130
|
|
131
131
|
class Main {
|
132
132
|
|
133
|
-
public static void main(String[] args) {
|
133
|
+
public static void main(String[] args) {
|
134
134
|
|
135
|
-
for (int i = 0; i <10; i++) {
|
135
|
+
for (int i = 0; i <10; i++) {
|
136
136
|
|
137
|
-
System.out.println(i);
|
137
|
+
System.out.println(i);
|
138
138
|
|
139
|
-
}
|
139
|
+
}
|
140
140
|
|
141
|
-
}
|
141
|
+
}
|
142
142
|
|
143
143
|
}
|
144
144
|
|