Java - 错误: "java.lang.ArrayIndexOutOfBoundsException: length=1; index=1"


错误: "java.lang.ArrayIndexOutOfBoundsException: length=1; index=1"


本文地址: http://blog.csdn.net/caroline_wendy/article/details/24464947


Java中, 错误: "java.lang.ArrayIndexOutOfBoundsException: length=1; index=1" ; 

意思: 数组(Array)索引(Index)越界(OutOfBounds)异常(Exception),长度(length)为1, 索引(index)为1;

由于索引值(index)要小于长度值(length), 索引是从0開始;

依据位置信息, 推断错误位置:

at mzx.spike.earthquake.app.EarthquakeListFragment.refreshEarthquakes(EarthquakeListFragment.java:118)

表明: EarthquakeListFragment.java文件的第118行, 出现这个错误.





免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM