what does the “Index: 68, Size: 10” means?

限于喜欢 提交于 2019-12-02 06:54:17

问题


I am getting an error

java.lang.IndexOutOfBoundsException: Index: 68, Size: 10

I know what this errors means.. That I try to read a position of an array where it doesn't exists. I don't know however this Index: 68, Size: 10 what does it means.. that I tried to read the position 68 of an array that has only 10 positions?


回答1:


what does it means.. that I tried to read the position 68 of an array that has only 10 positions?

Exactly! Index = 9 is the maximal index you can access.



来源:https://stackoverflow.com/questions/33923445/what-does-the-index-68-size-10-means

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!