Num++,出现了什么问题?
import java.util.Arrays;
public class HelloWorld {
public static void main(String[] args) {
int scores[]= {89,-23,64,91,119,52,73};
System.out.print("前三名是:");
HelloWorld hello=new HelloWorld();
hello.max(scores);
}
public void max(int scores[]){
int Num=0;
for(int i=scores.length;i>0&&Num<=3;i--)
{
if(scores[i]<0||scores[i]>100)
{
continue;
Num ++;
System.out.println(scores[i]);
}
}
}
}