最后一行输出System.out.println(scores[i]); 括号里面的i出错是为什么啊
package XL; import java.util.Arrays; public class XL{ public static void main(String[] args) { int scores[]={89,-23,64,91,119,52,73}; XL hello=new XL(); System.out.println("考试成绩的前三名为:"); hello.print(scores); } public void print(int scores[]){ Arrays.sort(scores); int num=0; for(int i=scores.length-1;i>=0&&num<3;i++) { if(scores[i]>100&&scores[i]<0) continue; } num++; System.out.println(scores[i]); } }