Java 区别包装类型和自定义类型
## Java 包装类型校验
基本数据类型--包装类型
byte--Byte
boolean--Boolean
short--Short
char--Character
int--Integer
long--Long
float--Float
double--Double
使用方法:class.isPrimitive();
```
public boolean isWrap(Class class){
try {
return ((Class) class.class.getField("TYPE")
729
0
0
1年前