Why does this
int x = 2; for (int y =2; y>0;y--){ System.out.println(x + \" \"+ y + \" \"); x++; }
prints the s
Those two cases are equivalent because the value of i is compared after the increment statement is done. However, if you did
if (i++ < 3)
versus
if (++i < 3)
you'd have to worry about the order of things.
And if you did
i = ++i + i++;
then you're just nuts.