123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- class Test04Base01
- {
- public static void main(String[] args)
- {
-
-
- byte b = 127;
-
- short s = 30000;
-
- int i = 1234567891;
-
- long l = 12345678910L;
-
- float f1 = 1.0001F;
- double d1 = 1.00012;
-
- f1 = 1.000000000000000001F;
- System.out.println(f1);
-
- System.out.println(0.1 + 0.2);
-
-
- float ff1 = 123123123F;
- float ff2 = ff1 + 1;
- System.out.println(ff1);
- System.out.println(ff2);
- System.out.println(ff1 == ff2);
-
-
-
- char c1 = 'a';
- System.out.println(c1);
- char c2 = '\u0023';
- System.out.println(c2);
- char c3 = '\t';
- System.out.println(c3);
-
- int c4 = c1;
- System.out.println(c4);
-
- boolean b1 = false;
-
- if(b1){
- System.out.println("true");
- }else{
- System.out.println("false");
- }
-
-
- }
- }
|