⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 err9.java

📁 this gcc-g++-3.3.1.tar.gz is a source file of gcc, you can learn more about gcc through this codes f
💻 JAVA
字号:
/*--------------------------------------------------------------------------*//* File name  : err9.java                                              *//*            :                                                             *//* Cause      : When I use "labeled continue" in "for"statement, error      *//*            :                                                             *//* Message    :  In class `err9':                                      *//*            :  In method `main(java.lang.String[])':                      *//*            : 22: `continue' must be in loop.                             *//*            :                 continue  movehere;                         *//*            :                 ^                                           *//*            : 1 error                                                     *//*--------------------------------------------------------------------------*/public class err9 {  public static void main(String[] args) {    int y = 0;  movehere: for ( int x = 0; x < 10; x++ ) {    if ( x > 2 ) {      continue  movehere;    }    y++;  }  if ( y == 3 ) {    System.out.println("OK");  } else {    System.out.println("NG:[3]-->[" +y+ "]");  }  }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -