//请勿忽视基础
import java.util.Scanner;
import javax.swing.ScrollPaneConstants;
public class TestScores {
public static void main(String[] args) {
// TODO Auto-generated method stub
boolean flag=true;
while(true){
Scanner scan=new Scanner(System.in);
System.out.println("请输入第一个字母:");
String input=scan.next();
if (input.equals("E") || input.equals("e")) {
System.out.println("优秀");
}else if (input.equals("G") || input.equals("e")) {
System.out.println("良好");
}else if (input.equals("S")||input.equals("s")) {
System.out.println("合格");
}else if (input.equals("F")|| input.equals("f")) {
System.out.println("不合格");
}else {
System.out.println("输入错误,请重新输入");
}
System.out.println("是否继续(y/n)");
String input2=scan.next();
if (input2.equals("y") || input.equals("Y")) {
}else {
System.out.println("退出系统");
break;
}
}
}
}