Can any one tell me why continue statement is not working in if ? i tried with following code

int luck=s.nextInt();
int randNo=(int)(Math.random()*(userValue*2+(1)));
int arrValue=point[i];
continue outA ;

but it shows error

Recommended Answers

All 6 Replies

continue and break are for loops. Not for condition statements.

It's good that you are trying to contribute here. But did you read the previous post? Did your post add anything new?


Sorry. I understand. I saw your post after i posted mine. A mistake.

Thanks for all your replies.. It's helpful for me...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.