![](/img/trans.png)
[英]What does it mean by java.lang.ArrayIndexOutOfBoundsException : 0
[英]What is java.lang.ArrayIndexOutOfBoundsException: 0?
谢谢大家在提出问题之前的回答。 在这里,我还有另一个问题。 我将数组写为ArrayBoolean时遇到异常java.lang.ArrayIndexOutOfBoundsException:0
我试图通过Google查找,但找不到。 如果你知道,请分享我。
从本质上讲,它意味着:
int[] array = new int[0];
array[0] = 0;
这意味着您尝试写入空数组。
从ArrayIndexOutOfBoundsException
javadoc:
* Thrown to indicate that an array has been accessed with an
* illegal index. The index is either negative or greater than or
* equal to the size of the array.
因此,0> =您的数组大小,因此您的数组为空。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.