public class HelloWorld {
public static void main(String[] args) {
char today='日';
switch(today){
case '一':
case '三':
case '五':
System.out.printnl("吃包子");
break;
case '二':
case '四':
case '六':
System.out.printnl("吃油条");
break;
default:
System.out.printnl("主席套餐");
}
}
}println 吃主席套餐
不知道,我也是这样写的,一直显示错误,我也想知道哪里错了
不好意思tln打成tnl了 丢人了