請問一下出現(xiàn)這種錯誤提示是什么原因啊
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Solution.sortIntegers(Solution.java:9) at Main.main(Main.java:21)
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0 at Solution.sortIntegers(Solution.java:9) at Main.main(Main.java:21)
2017-11-22
舉報
2017-11-22
ArrayIndexOutOfBoundsException有可能是數(shù)組越界,看下你第9行和第21行代碼,是不是定義的數(shù)組或者使用的數(shù)組越界了