什么是“指数:68,大小:10”手段? [英] what does the "Index: 68, Size: 10" means?

查看:107
本文介绍了什么是“指数:68,大小:10”手段?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误

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

我知道这个错误意味着什么..我试图读取一个不存在的数组位置。我不知道这个指数:68,大小:10 这意味着什么...我试图读取只有10个位置的数组的位置68?

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?

推荐答案


这意味着什么......我试图读取数组的第68位只有10个职位?

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

完全正确! Index = 9 是您可以访问的最大索引。

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

这篇关于什么是“指数:68,大小:10”手段?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆