2019.12.10 break 标记

class Demo01
{
  public static void main(String[] args)
  {
    int i=0;
    a:for(i=0;i<3;i++){
      for(int j=0;j<3;j++){
        if(j==1){
        break a;
        }
      System.out.print("*");
      }
    System.out.println();
    }
  }
}

猜你喜欢

转载自www.cnblogs.com/l1314/p/12016273.html