這個哪里錯了?
char today='日';
if((today==('一'))||(today==('三'))||(today==('五')));
? ? ? {
? ? ? ? ? System.out.println("早餐吃包子");
? ? ? ? ? } ??
? ? ? ? else if((today==('二'))||(today==('四'))||(today==('六')));
? ? ? ? {
? ? ? System.out.println("早餐吃油條");}
? ? ? ? else?
? ? ? ? {
? ? ? ? ? System.out.println("吃主席套餐");
? ? ? }
這個哪里錯了? ?
2016-04-22
if()后面你多打了個“;”,多打了后代表你if語句的執行語句為空
2016-05-01
太厲害了