switch官网 switch条件语句中,case后面可以跟什么类型的数据?
switch条件语句中,case后面可以跟什么类型的数据?在java7之前,switch只能支持byte、short、char、int或它们相应的封装类和枚举类型。在Java7中,还支持字符串类型。
switch条件语句中,case后面可以跟什么类型的数据?
在java7之前,switch只能支持byte、short、char、int或它们相应的封装类和枚举类型。在Java7中,还支持字符串类型。
switch条件语句中,case后面可以跟什么类型的数据?在java7之前,switch只能支持byte、short、char、int或它们相应的封装类和枚举类型。在Java7中,还支持字符串类型。
在java7之前,switch只能支持byte、short、char、int或它们相应的封装类和枚举类型。在Java7中,还支持字符串类型。