Hello javaplus
This is the best that I can do now:
int i = 3, j = 2, k = 4;
boolean switching = true;
gohere:{
if (switching) switch (i){
case 0:
System.out.println("impossible :)");
break;
case 3:
switch (j){
case 2:
switch (k){
case 4:
System.out.println("breaking");
i = 4;
switching = false;
break gohere; // similar to a while loop, but execution skips to the label immediately.
}
break;
}
System.out.println("oops)");
break;
case 4:
System.out.println("oops)");
break;
}
}
This gives the output:
Note that there was no oopses.
I hope that helped.
