我只有这一行代码:
}

灰色突出显示。我无法删除/移动它,基本上我无法对其进行任何操作。请告诉我为什么会这样以及如何删除它?
谢谢

for (int iPlay=0; iPlay<1; iPlay++)
     {
      for (int iCount=0;iCount<NonConference.length;iCount++)
      {
          for (int iCount2 = iCount+1; iCount2 < Conference.length; iCount2++)
             {

                 int HomeScore = 0;
                 int OppScore = 0;
                 while (HomeScore==OppScore){
                 HomeScore=RandomNumber.nextInt(100);
                 OppScore=RandomNumber.nextInt(100);
                 }
                   if(HomeScore>OppScore)
           {Conference[iCount].wins ++;
            NonConference[iCount2].losses++;
           }
           else
           {Conference[iCount].losses ++;
            NonConference[iCount2].wins++;
           }
      }}



    }     //THIS IS IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!


     //Output

Team1name.setText(Conference[0].team);
Team2name.setText(Conference[1].team);
Team3name.setText(Conference[2].team);


    }

最佳答案

在记事本中编辑.java类,然后从文件中删除//GEN - END代码。现在该代码应在NETBEANS中不受保护

09-25 21:06