import sun
.text
.resources
.cldr
.ig
.FormatData_ig
;
public class changjianwenti {
public static void main(String
[] args
) {
int i
=10;
int i2
=010;
int i3
=0x10;
int i4
=0x11;
System
.out
.println(i
);
System
.out
.println(i2
);
System
.out
.println(i3
);
System
.out
.println(i4
);
System
.out
.println("===================================");
float f1
=0.1f;
double f2
=1.0/10;
System
.out
.println(f1
==f2
);
float d1
=23135135151513f;
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
);
char c3
='\u0061';
System
.out
.println(c3
);
System
.out
.println("===============================================");
System
.out
.println("hello\nworld!");
System
.out
.println("===============================================");
String sa
=new String("hello,world");
String sb
=new String("hello,world");
System
.out
.println(sa
==sb
);
String sc
="hello,world";
String sd
="hello,world";
System
.out
.println(sc
==sd
);
System
.out
.println("===============================================");
boolean flag
=true;
if(flag
==true){}
if(flag
){}
}
}
转载请注明原文地址: https://lol.8miu.com/read-36036.html