Vision and dreams are the blueprints of soul and achievements.
-Mohammed Ahmed F

Simple Java program to understand Continue Statement

class ContinueEx
{
public static void main(String[] ahmed)
{
//Declaring array
int[] numbers = {10, 20, 40, 30, 50, 70, 90};
//Declaring 'x' as integer and assigning 'numbers' to x
for(int x : numbers)
{
if(x==30)
{
continue;
}
System.out.println(x);
System.out.println("\n");
}
}
}

Share this

Related Posts

Dear User,

Thank you for your comment. Hope you like this blog. Kindly share us on Social Media so others can be updated.

-Chief Administrative Officer.

Note: only a member of this blog may post a comment.