Advertisement
Advertisement
//continue statement example
public class ContinueEx
{
public static void main(String... ar)
{
for(int i=0;i<5;i++)
{
if(i==2)
continue;
System.out.println("i ="+i);
}
System.out.println("Out of the loop");
} //main method ends
} //class ends
0
1
3
4
Out of the loop
Advertisement
Advertisement
Please check our latest addition
C#, PYTHON and DJANGO
Advertisement