The java program says your index is past the end of the array. Does the array have 4 elements in it?
Check your code on line 50 to see how the index gets to be 3.
Remember array indexes go from 0...