(1)分支结构 switch分支注意事项: 1.表达式类型只能是byte、short、int、char,JDK5开始支持枚举,JDK7开始支持String,不支持double、float、long。 2.case的值不允许重复。