Computer Science, asked by Pranjal01, 1 year ago

What is the use of continue statement in java.
I want the answer ASAP!!!!
Please.

Answers

Answered by Dårviñ714
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(””);}}}

Pranjal01: Please can you give the output.
Dårviñ714: Ok
Pranjal01: Thanks.
Pranjal01: Pls answer my other question from computer too(with example ). I will mark you brainliest on both the answers.
Answered by Anonymous
0
hmmmmmm........

Interesting question u got there
Similar questions