switch能否用String做参数?
2016-09-30 16:32
239 查看
在Java7之前,switch只支持byte、short、char、int或者其对应的包装器类以及枚举类型作为参数;但是,自从Java7开始,也支持String类型作为参数。
相关文章推荐
- Switch能否用String做参数
- Switch能否用string做参数
- Switch能否用string做参数?
- Switch能否用string做参数
- Switch能否用string做参数
- Switch能否用string做参数
- Switch能否用string做参数?
- Switch能否用String做参数
- java中switch能否使用String作为参数?
- Switch能否用string做参数?
- Switch能否用string做参数?
- Switch能否用string做参数
- Switch能否用string做参数?
- Switch能否用String做参数?
- Switch能否用string做参数
- Switch能否用string做参数
- Switch能否使用String做参数
- Switch能否用string做参数?
- Java中 Switch能否用string做参数?
- 在jdk 1.6版本中,switch的参数无法使用String类型