集册 Java实例教程 继续用标签声明

继续用标签声明

欢马劈雪     最近更新时间:2020-01-02 10:19:05

491
提示:您可在线编辑运行本教程的实例 - 运行实例,去试试!
继续用标签声明
/*from 时   代     Java  公  众  号 - nowjava.com*/

public class Main {

 

  public static void main(String[] args) {

   

    int intArray[][] = new int[][]{{1,2},{2,3}};

   

    Outer:

    for(int i=0; i < intArray.length; i++)

    {

      for(int j=0; j < intArray[i].length ; j++)

      {

        if(intArray[i][j] == 3)

          continue Outer;

        System.out.println("Element is : " + intArray[i][j]);

      }

    }/*时代Java公众号*/

     

  }

}