You are trying to access an index which is out of array bounds In other words, the index you entered is bigger than array.length-1