import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String grade =scanner.next(); //write your code here...... String result = ""; switch (grade) { case "A": result = "优秀"; break; case "B": result = "良好"; break; case "C": result = "及格"; break; case "D": result = "不及格"; break; default: result = "未知等级"; } System.out.println(result); } }