Why doesn’t changing the pre to the post increment at the iteration part of a for loop make a difference?
The loop is equivalent to: int x = 2; { int y = 2; while (y > 0) { System.out.println(x + ” “+ y + ” “); x++; y–; // or –y; } } As you can see from reading that code, it doesn’t matter whether you use the post or pre decrement operator in … Read more