where exactly does the var i increment in this code:
public class Myfor {
public static void main(String argv[]) {
int i;
int j;
outer: for ( i=1 ; i<3 ; i++ )
inner: for ( j=1 ; j<3 ; j++ ) {
if (j==2) continue outer;
System.out.println( i + " " + j );
}
}
}
the output is : 1 1
2 1
But I just figure it out!
where is i & j incrementing? why a 2 and a 1?
help please!!!
public class Myfor {
public static void main(String argv[]) {
int i;
int j;
outer: for ( i=1 ; i<3 ; i++ )
inner: for ( j=1 ; j<3 ; j++ ) {
if (j==2) continue outer;
System.out.println( i + " " + j );
}
}
}
the output is : 1 1
2 1
But I just figure it out!
where is i & j incrementing? why a 2 and a 1?
help please!!!