boolean test=true;
  int i=0;
  while(test)
    {
      i++;
      if(i>=10) break;
    }
char a;
  outer:  //this is the label for the outer loop
  for(int i=0;i<10;i++)
  {
  for(int j=0;j<10;j++)
    {
      a=(char)System.in.read();
      if(a=='b')
        break outer;
      if(a=='c')
        continue outer;
    }
  }
新聞熱點
疑難解答