请大神教教哪里错了??
import java.util.Arrays;
public class HelloWorld {
//完成 main 方法
public static void main(String[] args) {
int []scores = {89,-23,64,91,119,52,73};
HelloWorld hello = new HelloWorld();
hello.method(int []scores);
}
//定义方法完成成绩排序并输出前三名的功能
public void method(int[]scores) {
int [] realScores;
for (int score:scores){
for(int i=0;i<scores.length;i++){
if (0<score&&score<100){
realScores[i] = score;
}
}
}
int []scores= Array.sort(realScores);
System.out.println(Array.toString(scores));
}