zoukankan      html  css  js  c++  java
  • JAVA循环结合标签使用,控制跳转

    public static void main(String[] args) {
    outer: for (int i = 0; true; i++) {
    inner: for (int j = 0; true; j++) {
    System.out.println("i=" + i + "------j=" + j);
    if (j == 1) {
    System.out.println("continue");
    continue;
    }
    
    if (j == 4) {
    System.out.println("continue outer");
    continue outer;
    }
    
    if (j == 6) {
    System.out.println("break");
    break;
    }
    
    if (i == 2) {
    if (j == 3) {
    System.out.println("continue inner");
    j++;
    continue inner;
    }
    }
    
    if (i == 3) {
    System.out.println("break outer");
    break outer;
    }
    }
    }
    }
  • 相关阅读:
    2017.1.10学习笔记
    v-model双向绑定
    指令之v-bind
    v-for列表渲染
    事件修饰符
    v-on
    指令v-text v-html
    vue起步
    Swoole HTTPServer
    SwooleTCP
  • 原文地址:https://www.cnblogs.com/mgzy/p/3904694.html
Copyright © 2011-2022 走看看