Why does this
int x = 2; for (int y =2; y>0;y--){ System.out.println(x + \" \"+ y + \" \"); x++; }
prints the s
You are right. The difference can be seen in this case:
for(int i = 0; i < 5; ) { System.out.println("i is : " + ++i); }