哪里错了呢?为什么内部的if不好使
package com.my;
import java.util.Arrays;
public class HelloWord {
public static void main(String[] args) {
HelloWord hello = new HelloWord();
int[] scores = { 89, -23, 64, 91, 119, 52, 73 };
hello.mxTre(scores);
}
// 定义方法完成成绩排序并输出前三名的功能
public void mxTre(int[] scores) {
Arrays.sort(scores);
for (int i = scores.length - 1; i >= 0; i--) {
int A = 0;
if (scores[i] < 0 || scores[i] > 100)
continue;
else {
if (A < 3) {
System.out.println(scores[i]);
A++;
}
}
}
}
}