The value in the index at line 16 goes past the end of the array.
Remember array index values range from 0 to the array length-1

Check the code to see how the index got past the end of the...