4. 嵌套if选择结构 语法: if (外层表达式){ if (内层表达式){ //内层代码块1 }else{ //内层代码块2 } }else{ //外层代码块 } public class TestNestedIf