My question has to do with the order in which java checks the conditions of a for loop when there is a print statement in the \"conditions\" of the loop. It
for ( ; ; ) { }
is equivalent to something like:
while ( ) { }
So you have:
i = -1; while ( i < n ) { i++; System.out.print(i + " "); }
The "problem" in your test question is that the types of statements usually put in the and portions are switched.