質問編集履歴
2
誤字の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -10,15 +10,15 @@
|
|
10
10
|
}
|
11
11
|
private static void check(int score){
|
12
12
|
if( 90 <= score && score <= 100 ){
|
13
|
-
System.out.println("点数" +
|
13
|
+
System.out.println("点数" + score + "は秀です");
|
14
14
|
}else if( 80 <= score && score <= 89 ){
|
15
|
-
System.out.println("点数" +
|
15
|
+
System.out.println("点数" + score + "は優です");
|
16
16
|
}else if( 70 <= score && score <= 79 ){
|
17
|
-
System.out.println("点数" +
|
17
|
+
System.out.println("点数" + score + "は良です");
|
18
18
|
}else if( 60 <= score && score <= 69 ){
|
19
|
-
System.out.println("点数" +
|
19
|
+
System.out.println("点数" + score + "は可です");
|
20
20
|
}else if( score <= 59 ){
|
21
|
-
System.out.println("点数" +
|
21
|
+
System.out.println("点数" + score + "は不合格です");
|
22
22
|
}else{
|
23
23
|
System.out.println("点数は" + 0 + "以上から" + 100 +"以下を入力してください");
|
24
24
|
}
|
1
エラーメッセージを記入し、コードも読みやすくしたつもりです。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
```Java
|
1
2
|
import java.util.*;
|
2
3
|
|
3
4
|
public class SeisekiMethod {
|
@@ -22,5 +23,7 @@
|
|
22
23
|
System.out.println("点数は" + 0 + "以上から" + 100 +"以下を入力してください");
|
23
24
|
}
|
24
25
|
}
|
25
|
-
|
26
|
+
```
|
26
|
-
10,13,15,17,19,21,23行目にエラーが出
|
27
|
+
10,13,15,17,19,21,23行目にエラーが出ます。
|
28
|
+
エラーの内容はすべて同じで
|
29
|
+
「Main.java:10:error:class,interface,or enum expected」です。
|