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...

[171 byte] By [miss_eleca] at [2007-11-27 11:06:50]
# 1

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.

hunter9000a at 2007-7-29 13:18:08 > top of Java-index,Java Essentials,Java Programming...
# 2

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 :(

miss_eleca at 2007-7-29 13:18:08 > top of Java-index,Java Essentials,Java Programming...
# 3

> 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.

hunter9000a at 2007-7-29 13:18:08 > top of Java-index,Java Essentials,Java Programming...
# 4

:-) Ok, I'll try to locate it more specifically and I'll tell the forum

miss_eleca at 2007-7-29 13:18:08 > top of Java-index,Java Essentials,Java Programming...
# 5

I found the line, and I think I also found a reason...Thanks!

miss_eleca at 2007-7-29 13:18:08 > top of Java-index,Java Essentials,Java Programming...