Go to the line of code your error message mentions and figure out what went wrong, ArrayOutOfBounds means you are trying to access a value that isn't there, your array length may be 32 and you are trying to grab the 33rd item... out of bounds. Sometimes arrays can be confusing for people.
Ex. keep in mind if an array has 5 values the index of the last value would be 4.
int[] array = {15, 25, 20, 40, 100}
so basically
array[0] is equal to 15
array[4] is 100
array[5] even though there is 5 values, this does not exist. ArrayOutOfBoundsException