請(qǐng)問這最后一個(gè)括號(hào)有什么問題?
import java.util.Arrays;
public class HelloWorld {
? ??
? ? //完成 main 方法
? ? public static void main(String[] args) {
? ? ? ? int[] scores={89,-23,64,91,119,52,73};
? ? ? ? System.out.println("考試成績前三名為:");
? ? ? ? HelloWorld hello=new HelloWorld();
? ? ? ? hello.big3(scores);?
? ? }
? ??
? ? //定義方法完成成績排序并輸出前三名的功能
? ? ? public void big3(String[] args){
? ? ? ? Arrays.sort(scores);
? ? ? ? int num=0;
? ? ? ? for(int i=scores.length-1;num<=0||num>3;i--){
? ? ? ? ? ? if(scores[i]<0||scores[i]>100){
? ? ? ? ? ? continue;
? ? ? ? ? ? num++;
? ? ? ? ? ? System.out.println(scores[i]);
? ? ? ? }
? ? ? ? ? ??
? ? }
}
2019-02-12
少了一個(gè)
2019-02-13
知道了
2019-02-13
2019-02-13
少了一個(gè)什么?