```java package com.company; public class Main { public static void main(String[] args) { //八大基本数据类型 //整数 int num1 =10; //最常用 byte num2 = 20; short num3 = 30; long num4 = 30L;//Long类型要在数字后面加个L //小数:浮点型 float num5 = 50.1F; //float类型要在数字后面加个F double num6 = 3.1415926; //字符 char name = 'A'; //字符串, String不是关键字,类 String name1 = "啧啧"; //布尔值 boolean flag = true; //boolean flag = fluse; System.out.println(num1); System.out.println(num2); System.out.println(num3); System.out.println(num4); System.out.println(num5); System.out.println(num6); System.out.println(name); System.out.println(name1); System.out.println(flag); } } ```