问答详情
源自:4-6 Java条件语句之 switch

他说我15个地方错了在哪?我的天

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("吃主席套餐"); } } }

提问者:qq_蕶薍_5 2017-04-20 15:45

个回答

  • 慕粉1559499722
    2017-04-20 15:59:13
    已采纳

    看看你的括号是不是中文的