int a; if(today=='一') a=1; if(today=='二') a=2; if(today=='三') a=3; if(today=='四') a=4; if(today=='五') a=5; if(today=='六') a=6; if(today=='日') a=7; switch(a) { case 1: case 3: case 5: System.out.println("早餐吃包子"); break; case 2: case 4: case 6: System.out.println("早餐吃油条"); break; case 7: System.out.println("吃主席套餐"); break; }
淡淡凉
2014-10-27
举报
0/150
提交
取消