对于基本数据类型,Java提供了对应的包裹类型
基本类型 | 包裹类型 |
boolean | Boolean |
char | Character |
byte | Byte |
short | Short |
long | Long |
int | Integer |
float | Float |
double | Double |
对于基本数据类型,Java提供了对应的包裹类型
基本类型 | 包裹类型 |
boolean | Boolean |
char | Character |
byte | Byte |
short | Short |
long | Long |
int | Integer |
float | Float |
double | Double |