public class Demo03 {
public static void main(String[] args) {
int i = 10;
int i2 = 010;
int i3 = 0x10;
System.out.println(i);
System.out.println(i2);
System.out.println(i3);
System.out.println("============================================");
float f = 0.1f;
double d = 1.0/10 ;
System.out.println(f==d);
float d1 = 2345646134543244321f;
double d2 = d1 + 1 ;
System.out.println(d1 == d2);
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);
System.out.println("============================================");
System.out.println("Hello\nWorld");
System.out.println("============================================");
String s1 = new String("Hello World");
String s2 = new String("Hello World");
System.out.println(s1 == s2);
String s3 = "Hello World";
String s4 = "Hello World";
System.out.println(s3 == s4);
System.out.println("============================================");
boolean flag = true;
if (flag==true){}
if (flag){ }
}
}