Java.lang.indexoutofboundsexception:index:0,size:0 [英] Java.lang.indexoutofboundsexception: index: 0, size: 0

查看:652
本文介绍了Java.lang.indexoutofboundsexception:index:0,size:0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你得到这个错误请帮助我解决这个问题

流程:com.rapidapps.kashgram.kashgram,PID:30096

java.lang.IndexOutOfBoundsException:Index: 0,大小:0

在java.util.ArrayList.get(ArrayList.java:411)



我有什么尝试过:



i一无所获..解决方案请帮帮我

um getting this error please help e to solve this
Process: com.rapidapps.kashgram.kashgram, PID: 30096
java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.get(ArrayList.java:411)

What I have tried:

i tried nothing..ineed solution please help me

推荐答案

看看错误:索引越界异常,索引== 0,大小== 0

这意味着你有一个零元素的数组,并且你试图访问第一个元素 - 这不是不存在。

所以看看411行或你的文件arrayList.java,看看你正在访问哪个数组。然后回顾一下代码,找出数组没有元素的原因 - 它来自哪里?从那以后做了什么?



我们不能为你做任何事情 - 我们不能访问你的电脑!
Look at the error: "Index out of bounds Exception, Index == 0, Size == 0"
That means you have an array with zero elements, and you are trying to access the first element - which doesn't exist.
So look at line 411 or your file "arrayList.java" and see which array you are accessing. Then look back through the code to find out why the array has no elements - where did it come from? What has been done to it since?

We can't do any of that for you - we don;t have any access to your computer!


这篇关于Java.lang.indexoutofboundsexception:index:0,size:0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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