public class HelloWorld {
	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同层,你写在IF里面了
你把最后一个else写在了第二个循环里面
谢谢你!
看符号是不是英文半角符号
看看{}是否对应的正确
代码中有两个if-else结构(这应该是出错的地方)
if(today.equals("周末")){
if(weather.equals("晴朗")){
System.out.println("去室外玩");
}else{
System.out.println("去室内玩");
}
}else{
System.out.println("去上班");
}