labelled continue statement | continues at the next iteration of the labeled loop | |
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; } | |
is a subtopic of Loops and Decision Making | |
is a kind of continue statement | |
continue statement | causes execution to switch immediately to the next iteration of a loop | |
has purpose used within loops to jump to another statement | |
see also continue | |
statement | is terminated by a semicolon | |
should be not more than one line long if possible | |
syntactic unit | has syntax rule bold = mandatory italic = non-terminal normal font = optional | |