The index has gone past the end of the array.
Remember: the values of array indexes range from 0 to the array length-1.
An array with 2 slots has the two indexes: 0 & 1

Please edit your post and...