JAVA今日2021.7.28
作者:互联网
JAVA数据类型
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
标签:JAVA,String,2021.7,数据类型,float,28,long,boolean 来源: https://www.cnblogs.com/Walf1234/p/15073172.html