1.基本数据类型
2.认识二进制
3.数字的基本数据类型
float类型,定义小数后面需要加F或f
float floatvar = 100.001111111F;
4.布尔值和字符
5.煮个栗子
public class BigNumber { public static void main(String[] args){ byte bytevar = 99; System.out.println(bytevar); short shortvar = 30000; System.out.println(shortvar); long longvar = 9999999999L; System.out.println(longvar); float floatvar = 100.001111111F; System.out.println(floatvar); double doubleVar = 10.022222211112; System.out.println(doubleVar); boolean codtion = true; System.out.println(codtion); char a = 'a'; System.out.println(a); } }
6.运行结果