switch能使用的数据类型有6种

byte、short、char、int、String、枚举

原文地址:https://www.cnblogs.com/1020182600HENG/p/6225488.html