1、switch中支持的数据类型有整型类型:bate、short、int、char、Integer等。 2、switch中支持的数据类型有枚举类型:enum等。 3、switch中支持的数据类型有String类型。