It is reading the file just fine, otherwise it would throw an IOException
instead of an ArrayIndexOutOfBoundsException
.
From the Oracle Documentation about ArrayIndexOutOfBoundsException
:
Thrown to indicate that an array has been accessed with an illegal index. The index is either negative or greater than or equal to the size of the array.
That happens in your init()
method if I am not mistaken. You have an array that has a limit of 130 and trying to get the element at index 130+ (because arrays start counting at 0) will give you that exception.
variableinput[130]
will throw it.