Java   View all facts   Glossary   Help
syntactic unit > statement > control flow statement > continue statement > labelled continue statement
Next continue statementunlabelled continue statement    Upcontinue statement

labelled continue statement
subjectfact 
labelled continue statementcontinues at the next iteration of the labeled loopadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:15.0
has example
public int indexOf(String str, int fromIndex) { 
char[] v1 = value;
char[] v2 = str.value;
int max = offset + (count - str.count);
test:
for (int i = offset + ((fromIndex < 0) ? 0 : fromIndex); i <= max ; i++) {
int n = str.count;
int j = i;
int k = str.offset;
while (n-- != 0) {
if (v1[j++] != v2[k++]) {
continue test;
}
} return i - offset;
} return -1;
}
added by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:15.0
is a subtopic of Loops and Decision Making2001-10-19 11:37:15.0
is a kind of continue statementadded by: JK, source: Sun Java Tutorial, 2001-10-19 11:37:15.0
continue statementcauses execution to switch immediately to the next iteration of a loop2001-10-19 11:36:33.0
has purpose used within loops to jump to another statement2001-10-19 11:36:33.0
see also continue2001-10-19 11:36:33.0
statementis terminated by a semicolon    2001-10-19 11:37:57.0
should be not more than one line long if possible2001-10-19 11:37:57.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0