为了账号安全,请及时绑定邮箱和手机立即绑定

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 搞不懂什么问题

Exception in thread "main" java.lang.Error: Unresolved compilation problem: 搞不懂什么问题

慕沐3521319 2018-04-21 17:15:53
package com.imooc;mport java.util.Arrays;public class HelloWorld {    public static void main(String[] args) {    HelloWorld hello = new HelloWorld();         int[] scores = {89 , -23 , 64 , 91 , 119 , 52 , 73};         hello.getBestThree(scores);   }          //定义方法完成成绩排序并输出前三名的功能     public void getBestThree(int[] scores){         Arrays.sort(scores);         int num=0;         for(int i=scores.length -1 ;i--) {          if(scores[i]<0||scores[i]>100) {          continue;          }          num++;          if(num>3) {          break;          }          System.out.println(score[i]);          }                  }              }编译后问题:Exception in thread "main" java.lang.Error: Unresolved compilation problem:  at com.imooc.HelloWorld.main(HelloWorld.java:5)
查看完整描述

2 回答

?
慕雪5558698

TA贡献3条经验 获得超4个赞

这种编译问题都搞不定,建议放弃开发

查看完整回答
反对 回复 2018-04-22
  • 2 回答
  • 0 关注
  • 2560 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信