public abstract class Main extends SuperMain {
int i;
+ int j;
public Main() {
super();
}
}
}
+
+ private void iHaveAContinueStatementWithoutALabelInWhile() {
+ // Do not touch me
+ while (i < 3) {
+ if (i++ == 1)
+ continue;
+ System.out.println("test");
+ }
+ }
+
+ private void iHaveAContinueStatementWithoutALabelInDo() {
+ // Do not touch me
+ do {
+ if (i++ == 1)
+ continue;
+ System.out.println("test");
+ } while (i < 3);
+ }
+
+ private void iHaveAContinueStatementWithoutALabelInFor() {
+ // Do not touch me
+ for (int i = 0; i < 3; i++) {
+ if (i == 1)
+ continue;
+ System.out.println("test");
+ }
+ }
+
+ private void iHaveAContinueStatementWithALabelInNestedWhile() {
+ // Do not touch me
+ lbl:
+ while (j++ < 5) {
+ while (i < 3) {
+ if (i++ == 1)
+ continue lbl;
+ System.out.println("test");
+ }
+ i = 0;
+ }
+ }
}
\ No newline at end of file