java.lang.ArrayIndexOutOfBoundsException: 1 ->what's that?
Can somebody explain to me what exactly means this exception, 'cause I am a bit confused.
I would post you my code, but the problematic part is rather big...
Can somebody explain to me what exactly means this exception, 'cause I am a bit confused.
I would post you my code, but the problematic part is rather big...
It means that you're trying to access an index of an array that's outside of it's bounds. In this case, 1 is the index. That means your array only has one element in it, so the only index you can access is [0]. Remember arrays are 0-based.
Hm, I understand what you say, but how it is related to my case?I have a two-dimensional array that fills from another array with a loop. The number of columns I have is very big (~100,000) and for some reason, the exception is thrown at loop no 25,000. For less loops no problem...(My implementation is multiplexing sources that have to share the same medium of transmission)
I can't think of where my indexs go out of bound :(
> Hm, I understand what you say, but how it is related
> to my case?I have a two-dimensional array that fills
> from another array with a loop. The number of columns
> I have is very big (~100,000) and for some reason,
> the exception is thrown at loop no 25,000. For less
> loops no problem...(My implementation is multiplexing
> sources that have to share the same medium of
> transmission)
> I can't think of where my indexs go out of bound :(
Neither can I, but then again, I'm not psychic :)
Post the (relevant part of the) code that throws the exception.