Try debugging your code by adding printlns that print out was was read from the file before trying to store it into the array. That will show you what the program is reading from the file.

Where...