public class Demlo02 { public static void main(String[] args) { //八大基本数据类型 //整数 int nmu1 = 10; byte num2 = 20; short num3 = 30; long num4 = 30l; //小数:浮点数 float num5 = 50.1F; double num6 = 3.1415; //字符 char name = '国'; //字符串,String不是关键字,类 //String namea = "秦疆"; //布尔值:是非 boolean flag = true; //boolean flag = false; } }