修改项目目录
This commit is contained in:
16
src/chapter2/Example09.java
Normal file
16
src/chapter2/Example09.java
Normal file
@@ -0,0 +1,16 @@
|
||||
package chapter2;
|
||||
|
||||
public class Example09 {
|
||||
public static void main(String[] args) {
|
||||
int grade = 75;
|
||||
if (grade > 80) {
|
||||
System.out.println("该成绩的等级为优");
|
||||
} else if (grade > 70) {
|
||||
System.out.println("该成绩的等级是良");
|
||||
} else if (grade > 60) {
|
||||
System.out.println("该成绩的等级是中");
|
||||
} else {
|
||||
System.out.println("该成绩的等级是差");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user