多重循环问题
public class Shuibian {
public static void main(String[] args) {
String today="周末";
String weather="晴朗";
if(today.equals(today)){
if(today.equals(weather)){
System.out.println("室外游玩");
}else{
System.out.println("室内游玩");
}
}else{
System.out.println("工作");
}
}
为何运行结果是室内游玩呢?这样写不对吗?