public class Test4 {
public static void main(String[] args) {
/*
创建byte,char,short,int,long,float,double7种类型变量,对每种类型变量进行累加.
*/
byte b=97;
System.out.println(b);
char c=(char) b++;
System.out.println(c);
int i=c++;
System.out.println(i);
long l=i++;
System.out.println(l);
float f=l++;
System.out.println(f);
double d=f++;
System.out.println(d);
}
}
温馨提示:内容为网友见解,仅供参考