为啥输出的东西不对啊
public static void main(String[] args) {
int[] scores={89,-23,64,91,119,52,73};
HelloWorld hello = new HelloWorld();
hello.youxiao(scores);
hello.chengji(scores);
}
public void youxiao(int scores[]){
int i=0;
for(int score:scores)
{
if(score<100&&score>0)
{
scores[i]=score;
i+=1;
}
}
}
public void chengji(int scores[]){
Arrays.sort(scores);
for(int i=scores.length-3;i<scores.length;i++){
System.out.println(scores[i]);
}
}