标签: java increment
可能重复: Why doesn’t changing the pre to the post increment at the iteration part of a for loop make a difference?
for (int i = 0; i < 3; ++i) System.out.print(i + ".."); //prints 0..1..2 for (int i = 0; i < 3; i++) System.out.print(i + ".."); //prints 0..1..2
那有什么区别?在什么情况下可以错误地或错误地使用预增量导致错误......