gpt4 book ai didi

java - 如何在 NetBeans 中删除/移动这行代码

转载 作者:太空宇宙 更新时间:2023-11-04 13:57:44 25 4
gpt4 key购买 nike

我只有一行代码:}

上面有灰色突出显示。我无法删除/移动它,基本上我无法对它做任何事情。请告诉我为什么会这样以及如何删除它?谢谢

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 中应该不 protected

关于java - 如何在 NetBeans 中删除/移动这行代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29640925/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com