public class Main {/** from 时 代 Java - nowjava.com**/
public static void main(String[] args) {
int i = 10;
int j = 10;
i++;
j++;
System.out.println("i = " + i);
System.out.println("j = " + j);
/*
* value of i would be assigned to k and then its
* incremented by one.
*/
int k = i++;
/*
* value of j would be incremented first and then
* assigned to k.
*/
/*
*来 自
NowJava.com - 时 代 Java
*/
int l = ++j;
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。