For loop structure for arrays

Talking about for loops; also as a self-teaching beginner and maybe of interest to others, I recently found out that the following is possible as well.

int x = 2; 
for (long y = 0, z = 4; x < 10 && y < 10; x++, y++) { 
   println(x+" "+y);
 }
3 Likes