public class if5 { public static void main(String[] args){ String today="周三"; String weather="晴朗"; if (today.equals("周日"));{ if (weather.equals("晴朗")); { System.out.println("去室外游乐场玩"); }else{ System.out.println("去室外游乐场"); } }else{ System.out.println("去上班"); } } } 大神帮我看看哪里错了?
你把两个if后面的分号去掉看看