for loops
if i have two for loops like below, how would i get the inner loop to stop executing, but the other one to keep on going? for example if i wanted the output:
0 0
0 1
0 2
1 0
1 1
1 2
2// the inner loops stops here
3
4
etc
for (int i = 0; i <6; i++)
{
for (int x = 0; x <3; x++)
{
System.out.println(i+" "+x);
}
}

