快捷导航

请求前辈告诉这哪里错了???

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("考试前三名的成绩为:");    hellWord hello = new HelloWorld();    hello.showTop3(scores)    }     public void showTop3(int[] scores){    Arrays.sort(scores);    int num = 0;    for(int i = scores.length-1 ; i >= 0 ; i--){      if(scores  100){        continue;      }      num++;      if(num>3){        break;      }      System.out.println(scores);    }  }}

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员2

都在图里了
回复

使用道具 举报

hello.showTop3(scores);以分号结尾
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP