package yuanzhoulv;
import java.util.Scanner;
public class zuoye {
public static void main(String[] args) {
System.out.println("******欢迎使用学员情况转换器******");
qq();
}
public static void qq() {
System.out.println("请输入学员情况的第一个英文字母: ");
Scanner zz = new Scanner(System.in);
String haha = zz.nextLine();
switch (haha) {
case "E":
System.out.println("优秀");
pp();
break;
case "g":
System.out.println("良好");
pp();
break;
case "q":
System.out.println("及格");
pp();
break;
case "f":
System.out.println("合格");
pp();
break;
default:
System.out.println("输入有误");
pp();
break;
}
}
public static void pp() {
System.out.println("需要继续吗? ");
Scanner xx = new Scanner(System.in);
String kaokao = xx.nextLine();
switch (kaokao) {
case "y":
qq();
break;
case "n":
System.exit(0);
break;
default:
System.out.println("输入有误");
pp();
}
}
}