重点再grade.equals上。 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan =new Scanner(System.in); String grade =scan.next(); if(grade.equals("A")){ ...