[记录]遇到的Java报错 - 随时更新

Learn From Exception

从错误中学到点东西

各种报错

java.lang.ArrayIndexOutOfBoundsException

查了资料,是数组越界,Java原始的数组是固定长度就不能变的。如果需要长度可变,使用ArrayList
代替。

参考资料

https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html

猜你喜欢

转载自blog.csdn.net/u010690493/article/details/85136632
今日推荐