哪错了?不能这么定义吗?
public class HelloWorld { public static void main(String[] args) { char today='日'; switch(today) { case '一': case '三': case '五': String food="包子"; break; case '二': case '四': case '六': String food="油条"; break; default: String food="主席套餐"; } System.out.print("吃"+food); } }