switch語句有問題?
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("吃主席套餐");
??????? }
??? }
}
2015-05-27
那可能是中英文切換出錯了
2015-04-27
沒問題+1
2015-04-27
沒問題的