提示第二行出错,哪儿错了。帮忙看下,谢谢
public class HelloWorld{
import java.util.Arrays;
//完成 main 方法
public static void main(String[] args) {
int[] grade = {89,-23,64,91,119,52,73};
System.out.println("考试成绩前三名为:");
HelloWorld.hello = new HelloWorld();
hello.show(grade);
}
//定义方法完成成绩排序并输出前三名的功能
public void show(int[] grade){
Arrays.sort(grade);
int topThree = 0;
for(int i = scores.length-1;i >=0;i--){
if(grade[i]<0 || grade[i]>100){
continue;
}
if(topThree>3){
break;
}System.out.println(grade[i]);
}
}
}