求大神解答
public class Java8_1 {
public static void main(String[] args){
int[] scores={89,-23,64,91,119,52,73};
Java8_1 hello=new Java8_1();
hello.show(scores);
}
public void show(int[] scores){
int count=0;
Arrays.sort(scores);
for (int i=scores.length-1;i>=0;i--){
if((scores[i]<0)||(scores[i]>100)){
continue;}
count++;
if (count>3)
{break; //当count>3时,为什么只输出3个数啊?break应该只跳出本层循环啊,应该还是要打印 啊!!
}
System.out.println(scores[i]);
}
}
}