ArrayIndexOutOfBoundException indicates you have asked for an element of the array that doesn't exist.
If your array was:
int[] array = {1,2,3};
and you asked for array[3], you would get this exception. (remember,
Java arrays are zero based, so array[3] would refer to the 4th element, if it existed)
That said, it is always better to use the length of the array to control a for when iterating through an array, as so:
for( int i = 0; i < array.length; ++i )
this way, you can't overrun the array because the array size itself is controlling the loop.
In your case, you need to fix line 135 in your program (as per the error message)