Possible Duplicate:
goto keyword in java
- There is no goto in java, right ?
- Why goto is still considered a keyword then ?
- Label syntax (only properly* used before a loop/if statement ?? ) and called through (label, break label, continue label)
*properly cause when i used before x=3
it couldn't be read after it are there any other cases ?
int x = 2;
label: x = 3;
for (int j = 0; j < 5; j++) {
System.out.println(j);
}
label; // Compile error (no local variable label)