public class HelloWorld {
//完成 main 方法
public static void main(String[] args) {
int [] scroes ={89,-23,6,91,119,52,73};
HelloWorld hello=new HelloWorld();
int nums []=hello.garde(scroes);
for(int i=0;i<3;i++)
System.out.println(nums[i]);
}
//定义方法完成成绩排序并输出前三名的功能
public int [] garde (int scroes [])
{
for(int i=0;i
for(int j=i+1;j
if(scroes[i]
{
int temp=scroes[j];
scroes[j]=scroes[i];
scroes[i]=temp;
}
}
}
return scroes ;
}
说我第23行定义报错,看了半天没看懂这是为什么
/85/1598/Jcdd/HelloWorld.java:23: error: cannot find symbol
if(scroes[i]