初学者希望有人来看看这个问题

img


一个初学者的问题 teacher给的课堂作业 实在没有头绪 要求用switch语句实现代码精简 不用一个一个打

import java.util.Scanner;
public class Test{
  public static void main(String args[]){
        Scanner in = new Scanner(System.in);
        int score = in.nextInt();
       if(score>=85){
            System.out.println("A");
       }else if(score>=70 && score<85){
            System.out.println("B");
      }else if(score>=60 && score<70){
            System.out.println("C");
      }else{
            System.out.println("D");
      }

  }
}

解决了吗,还需要帮助吗