switch接受的参数类型 :
byte;short;int;char;以及相应的包装类Byte;Short;Integer;Character
String;枚举类
共十个类型
本文介绍了Java中switch语句可以接受的十种参数类型,包括基本数据类型如byte、short、int、char及其对应的包装类,还有String类型及枚举类。
switch接受的参数类型 :
byte;short;int;char;以及相应的包装类Byte;Short;Integer;Character
String;枚举类
共十个类型
2632
7211

被折叠的 条评论
为什么被折叠?
