Learn From Exception
从错误中学到点东西
各种报错
java.lang.ArrayIndexOutOfBoundsException
查了资料,是数组越界,Java原始的数组是固定长度就不能变的。如果需要长度可变,使用ArrayList
代替。
参考资料
https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html
从错误中学到点东西
查了资料,是数组越界,Java原始的数组是固定长度就不能变的。如果需要长度可变,使用ArrayList
代替。
https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html