因为
int是原始类型,而不是类,所以它不能直接与进行比较
String。对应的类类型是
Integer根据类命名约定拼写的。
类似的原始类型和类类型对是
byte
与Byte
short
与Short
long
与Long
float
与Float
double
与Double
boolean
与Boolean
char
与Character

因为
int是原始类型,而不是类,所以它不能直接与进行比较
String。对应的类类型是
Integer根据类命名约定拼写的。
类似的原始类型和类类型对是
byte与
Byte
short与
Short
long与
Long
float与
Float
double与
Double
boolean与
Boolean
char与
Character