入门第一季的最后编程练习麻烦看下错在哪儿了
import java.util.*;
public class Test1{
    public static void main(String[] args) {
        int [] scores={89,-23,64,91,119,52,73};
        int [] list;
        Test1 hello=new Test1();
        list=hello.show(scores);
        System.out.println(Arrays.toString(list));
    }
    
    //定义方法完成成绩排序并输出前三名的功能
    public int[] show(int [] scores){
        int sum[]=new int[3];
        int count=0;
        int j=0;
        Arrays.sort(scores);
        for(int i=scores.length-1;i>=0;i--){
            if(scores[i]>=0&&scores[i]<=100){            
                sum[j]=scores[i];
                count++;
                j++;
            }
            if(count>3)
                break;
        }
        return sum;
    }
    
}
语法没问题。就是运行的时候出错了。有谁可以帮忙看看么。谢谢

 
                             
                             
                            