swithc 后面的表达式怎么是String也可以的啊
public class HelloWorld {
public static void main(String[] args) {
String today="日";
switch (today) {
case "一":
case "二":
case "三":
System.out.println("早餐吃包子");
break;
case "二 ":
case "四":
case "六":
System.out.println("早餐吃油条");
break;
case "日":
System.out.println("吃主席套餐");
break;
}
}
}