问答详情
源自:7-1 编程练习

Exception in thread "main"

源代码已经更正修改了,但还是报错

报错提示:

考试成绩的前三名为:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 7
at HelloWorld.getBest3(HelloWorld.java:19)
at HelloWorld.main(HelloWorld.java:9)

提问者:Sakuraki 2017-01-27 00:26

个回答

  • 南祈
    2017-01-29 15:07:18

    应该是你的i=scores.length-1这里错了,写成i=scores.length了

  • qq_handspeaker_0
    2017-01-27 11:51:17

    556