import org.omg.PortableInterceptor.ObjectReferenceTemplate;
import javax.swing.text.DefaultStyledDocument;
public class Demo02 {
public static void main(String[] args){
//八大基本数据
//整数
int num1 = 10; //最常用
byte num2 = 20;
short num3 = 30;
long num4 = 30l;//long类型要在数字后后面加L
//小数:浮点数
float num5 = 50.1F;//Lfloat类型要在数字后面加F
double num6 = 3.1415926;
//字符
char name = '国';
//字符串,String不是关键字,类
//String namea = "雷老虎”;
//布尔值
// boolean flag = true;
//Boolean flag = false;
}
}