Plan
May 21, 2020Schlägt
i++++ 在后,先运算完当前结果,再给i赋值
ex:1234567Object [] obj = new Object [16]i = 0;obj[i ++] = "obj"// 会先执行obj[0]="obj";// 再执行i = i + 1;
1234567
Object [] obj = new Object [16]i = 0;obj[i ++] = "obj"// 会先执行obj[0]="obj";// 再执行i = i + 1;
–i;– 在前,则先给i赋值,再执行当前运算