这样为啥是失败的?哪里出错了额?
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
Test t=new Test();
int[] scores={89,-23,64,91,119,52,73};
t.rank(scores);
}
public void rank(int[] score){
int[] score2= {};
Arrays.sort(score);
for(int i=0;i < score.length;i++){
if(score[i]>100 || score[i]<0){
continue;
}
score2[i]=score[i];
}
for(int j=score2.length-1;j<score2.length-4;j--){
System.out.println(score2[j]);
}}}