int age=18;
float money=4.58f;
boolean sex=true;
double pi=3.1415926;
char z='A';
基本数据类型:
整型:字节类型(byte)短整型(short)整型(int)长整型(long)
浮点型: 单精度浮点(float)双精度浮点(double)
字符型:char
布尔型:bool
int age=18;
float money=4.58f;
boolean sex=true;
double pi=3.1415926;
char z='A';
基本数据类型:
整型:字节类型(byte)短整型(short)整型(int)长整型(long)
浮点型: 单精度浮点(float)双精度浮点(double)
字符型:char
布尔型:bool