qq_蕶薍_5
2017-04-20 15:45
public class HelloWorld { public static void main(String[] args) { char today='日'; switch(today){ case '一': case '三': case '五': System.out.println("吃包子"); break; case '二': case '四': case '六': System.out.println("吃油条"); break; default'日': System.out.println("吃主席套餐"); } } }
看看你的括号是不是中文的
Java入门第一季(IDEA工具)升级版
1167410 学习 · 18748 问题
相似问题