public class Demo {标签:int,数据类型,System,char,flag,println,out From: https://www.cnblogs.com/gxh0718/p/16753856.html
public static void main(String[] args) {
int i=10;
int i2=010;
int i3=0x1A;//16进制0-9 A-F
int i4=0b0010;
System.out.println(i);
System.out.println(i2);
System.out.println(i3);
System.out.println(i4);
System.out.println("//=========================================");
//浮点数
//float
//double
//
float f=0.1f;
double d=1.0/10;
System.out.println(f==d);
System.out.println("//=========================================");
char c1='a';
char c2='中';
System.out.println(c1);
System.out.println((int)c1);
System.out.println(c2);
System.out.println((int)c2);
System.out.println("//=========================================");
char c3='\u0061';
System.out.println(c3);
//转义字符
// \n换行符
// \制表符
//布尔值扩展
//boolean flag = true;
// if (flag==ture){}
//if (flag){}
}
}