What is the use of continue statement in java.
I want the answer ASAP!!!!
Please.
Answers
Answered by
1
The continue statement forces the next iteration of the loop to take place by skipping some lines in between the loop.
Consider this example:
class BrainlyD
{void print()
{for (int i=0;i<10;i++)
{System.out.println(i+”\t”)
if(i%2==0)
{continue;}
System.out.println(””);}}}
Consider this example:
class BrainlyD
{void print()
{for (int i=0;i<10;i++)
{System.out.println(i+”\t”)
if(i%2==0)
{continue;}
System.out.println(””);}}}
Pranjal01:
Please can you give the output.
Answered by
0
hmmmmmm........
Interesting question u got there
Interesting question u got there
Similar questions