public class Demo02 {标签:基本,八大,String,数据类型,flag,boolean,public From: https://www.cnblogs.com/zzh-study/p/17709410.html
public static void main(String[]args){
//八大基本数据类型
int num1 = 10; //最常用
byte num2 = 20;
short num3 = 30;
long num4 = 30L;//Long类型要在数字后面加L
//浮点数(小数)
float num5 = 50.1F;
double num6 = 3.141592653589328462643;
//字符
char name = 'A';
//字符串,String不是关键词,是类
//String namea = "狂神";
//布尔值: 是非
boolean flag = true;
//boolean flag = false;
}
}