The "continue" statement in JAVA
right now I have a code of
Code:
while (!eof) {
for (int i=0; condtion; i++) {
if (conditionX==-1) break;
blah blah;
}
if (conditionX==-1) continue;
more blah blah}
what I want to know is about the use of the "continue", does it just fallout for while loops? or can it fall out for "for loops" too.
I mean can I change
Code:
if (conditionX==-1) break;
to
Code:
if (conditionX==-1) continue
and still have it working like the original code (falling out the *complete* while and not just the for loop.)