這個怎么錯了
???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("吃主席套餐"); }???? } }
2016-02-29
case 后面加: 數(shù)字用''單引號
2016-02-29
case 后跟常量表達(dá)式,一二三四五六都用’‘