循环

  1. while

    while (循环条件) {
    //循环体
    }
  2. for

    for (;;) {
    //循环体
    }
  3. 退出循环

    continue​:退出本次循环

    break​:退出整个循环