自增自检
作者:互联网
测试1
public class T { public static void main(String[] args) { int a = 3; int b = a++;//执行这行代码,先给b赋值,a再自增 //a = a + 1; //a = a + 1; int c = ++a;//执行这行代码,a先自增,再给b赋值 System.out.println(a + "____" + b + "____" + c);//5____3____5 } }
标签:自增,int,____,++,自检,public,赋值 来源: https://www.cnblogs.com/jzbl/p/16376181.html