switch条件变量的取值类型

mac2026-09-24  11

switch条件变量的取值类型

byte,short,int,char,枚举(在jdk1.5之后),string(在jdk1.7后)

switch一般都是解决等值问题

最新回复(0)