哪里出错啊?
import java.util.Arrays;
public class HelloWorld {
//完成 main 方法
public static void main(String[] args) {
int[] scores={89,-23,64,91,119,52,73};
int[] score=cal(scores);
dips(score);
}
private static void dips(int[] score) {
System.out.println("考试成绩的前三名是:");
int num=0;
for(int i=score.length-1;i>0;i--)
{
if(score[i]>100||score[i]<0)
continue;
System.out.println(score[i]);// TODO Auto-generated method stub
num++;
if(num>2)
break;
}
}
private static int[] cal(int[] scores) {
Arrays.sort(scores);
return scores;
}