Example2_2.java


public class Example2_2 {

/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stu
byte a =120;
short b=130;
int c=2200;
long d=80000;
float f;
double g=0.12345676812345678;
a=(byte)b;
c=(int)d;
f=(float)g;
System.out.println("a="+a);
System.out.println("c="+c);
System.out.println("f="+f);
System.out.println("g="+g);

}

}

posted on 2013-03-17 22:02  杜佳润  阅读(111)  评论(0)    收藏  举报

导航