if条件和他的相反,
public void qiansanming(int[] scores)
{ Arrays.sort(scores);
int count = 0;
for(int i = scores.length-1;i >= 0;i--)
{
if(scores[i] >= 0 && scores[i] <= 100)
{
count++;
if(count > 3)
{
break;
}
System.out.println(scores[i]);
continue;
}
}
}