|
-
July 15th, 2009, 02:41 PM
#1
Index OOB Exception Error
I'm sure you've all become quite familiar with this "four letter word" in your travels, as have I.
The exact error is as follows:
-----
Exception in thread "main" java.lang.IndexOutOfBoundsException. Index:4 Size: 4.
at java.util.ArrayList.RangeCheck(ArrayList.java:546)
-----
What I don't really get, is before getting this message, I wasn't dealing with arrays(or ArrayLists), but a StringBuilder value I had just inserted. At that point, i get this error.
Is there anyway, to detect if it really IS a fluke arraylist exception error, elsewhere in my code. And if so, is there a simple way of finding this fluke code?
=Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|