Visitor: implemented any possible breakStmt

This commit is contained in:
Carlos Galindo 2019-04-04 17:14:14 +02:00
commit 96847b7a8a
Signed by untrusted user who does not match committer: kauron
GPG key ID: 83E68706DEE119A3
3 changed files with 67 additions and 17 deletions

View file

@ -0,0 +1,17 @@
package mytest;
public class BasicBreak {
public static void main(String[] args) {
int x = 0;
bucle:
while (true) {
x++;
for (int y = 0; y < 10; y++) {
if (y == x) break;
if (y * 2 == x) break bucle;
}
if (x > 10) break;
x++;
}
}
}