int a = 5; int b= a++; int c= ++a; System.out.println(a); System.out.println(b); System.out.println(c);
a = 5;
b= a++; //先把a值赋给b,然后a自加1;这是a=6;
c= ++a;//a先自加,a=7
运行b=a++后,b=5,a=6;
运行c=++a后,c=7,a=7