问答详情
源自:4-6 Java条件语句之 switch

求大神解释一下,哪里错了


public class HelloWorld {
    public static void main(String[] args) {
   String today="日";
  if (today.equals("一")){
      System.out.println("吃包子");
  }else if(today.equals("三")){
      System.out.println("吃包子");
  }else if(today.equals("五")){
      System.out.println("吃包子");
  }else if(today.equals("日")){
      System.out.println("吃主席套餐");
  }else {System.out.println("吃油条");
       

提问者:慕姐907971 2019-11-10 15:39

个回答

  • qq_酷牛_eiHOS3
    2019-11-10 18:04:20

    尾部漏了   }