1 /*--------------------------------------------------------------------------*/
2 /* File name : err9.java */
4 /* Cause : When I use "labeled continue" in "for"statement, error */
6 /* Message : In class `err9': */
7 /* : In method `main(java.lang.String[])': */
8 /* : 22: `continue' must be in loop. */
9 /* : continue movehere; */
12 /*--------------------------------------------------------------------------*/
15 public static void main(String[] args) {
18 movehere: for ( int x = 0; x < 10; x++ ) {
26 System.out.println("OK");
28 System.out.println("NG:[3]-->[" +y+ "]");