public class
Test {
public static void main(
String[] args)
{
int i = 0, j = 5;
lab1 : for( ; ; i++)
{
System.out.println(i);
for( ; ; --j)
if( i >j )
break lab1;
}
System.out.println(" i ="+i+" , j = "+j);
}
}
//The answer is: i=0, j= -1
I cannot understand why "i" is 0 instead of 1, since it past the for(;;i++) loop.
Thank you for your explaination.
[This message has been edited by Ivey Zhang (edited February 14, 2001).]