package com.wang.struct;
public class Demo04 {
public static void main(String[] args) {
char grade='D';
switch(grade){
case 'A':
System.out.println("优秀");
break;
case 'B':
System.out.println("合格");
break;
case 'C':
System.out.println("一般");
break;
case 'D':
System.out.println("较差");
break;
default:
System.out.println("输入错误");
}
}
}
标签:case,break,15,System,选择,switch,println,out
From: https://www.cnblogs.com/PedroPascal/p/17093351.html