public class 数据类型 {
public static void main(String[] args) {
//整数
byte a = 1;
int b = 2;
short c = 3;
long d = 4L;//long后面要加L
//浮点
float e = 5.6F;//float后面要加F
double f = 3.1415926;
//字符
char g = 'q';
// String是类 String h = "Wal";
//布尔值:是或非
boolean flag = true;
boolean siz = false;
}
}
2021.7.28