在jdk 1.6版本中,switch的参数无法使用String类型 2019-03-07 | 0 评论 | 0 浏览 在jdk 1.6版本中,switch的参数无法使用String类型,只支持int,char,enum类型。