1 package bianliang;
2
3 public class lianxi {
4
5 public static void main(String[] args) {
6 // TODO Auto-generated method stub
7
8 byte a=8;
9 short b=111;
10 int c=456;
11 long d=899;
12 System.out.println("d="+((a+b)+c));
13
14 float f1=12.3f;
15 double d1=23.4;
16 System.out.println("d1="+f1);
17
18 char x='a';
19 System.out.println("x="+x);
20 char y=98;
21 System.out.println("y="+y);
22
23 char z='c';
24 System.out.println("z=\n"+z);
25
26 boolean h=true;
27 boolean j=false;
28 System.out.println("h="+true);
29 System.out.println("j="+false);
30
31 int age;
32 char char1='r';
33
34 final int NUMBER=1234;
35 int bbl=12;
36
37 System.out.println("NUMBER="+NUMBER);
38 System.out.println("bbl="+bbl);
39
40
41
42
43
44
45
46 }
47
48 }