switch多选择结构
public class SwitchDemo0 {
public static void main(String[] args) {
//case 穿透 //switch 匹配一个具体的值
char grade = 'c';
switch (grade){
case 'A':
System.out.println("优秀");
break;
case 'B':
System.out.println("良好");
break;
case 'C':
System.out.println("及格");
case 'D':
System.out.println("再接再厉");
break;
case 'E':
System.out.println("挂科");
}
}
}