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