Java条件语句之嵌套 if
public static void main(String[] args){
String today = "周末";
String weather = "晴朗";
if(today.equals("周末")){
if(weather.equals("晴朗")){
System.out.println("去室外游乐场玩");
}else{
System.out.println("去上班");
}
}
}
}