請(qǐng)問我哪里錯(cuò)了
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;
default:
??? System.out.println("吃主席套餐");break;
}
} }
2015-05-03
要用單引號(hào)吧,雙引號(hào)是字符串,單引號(hào)是字符
2015-04-27