Friends,
I am having a tough time with nested for loops. For example, the following:
What will be printed?
outer: for( int i_=1; i<5 ;i++)
{ inner : for ( j= 1;j<5;j++)
{ if (j==3) continue outer:
System.out.prinltn("i= " + i ",j = " + j)
}
}
Is there an easy way to figure out this apart from "a pen and a paper" method ?
Any other loops related questions in this
thread will be helpful.
- rexian
------------------
If u are tired of it then get done with it
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR><B>Successful people in this world are those who get up and look for the circumstances they want. If they can't find them, they make them.</B><HR></BLOCKQUOTE>