public class Increment {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自动生成方法存根
  int j=0;
  int temp=0;
  for(int i=0;i<100;i++)
  {
	  temp=j++;
	  System.out.println("this is the temp j  "+j);
  }
  System.out.println(j);
	}

}





 

public class Increment {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自动生成方法存根
  int j=0;
  int temp=0;
  for(int i=0;i<100;i++)
  {
	  j=j++;
	  System.out.println("this is the temp j  "+j);
  }
  System.out.println(j);
	}

}

 的区别!

评论
发表评论

您还没有登录,请登录后发表评论

beyondsanli
搜索本博客
我的相册
Ed2ef40c-0044-376b-ae87-96fbb4175e76-thumb
未命名2
共 17 张
存档
最新评论