Hi -
I am reading a text file of student names with
test scores. Each line of data is separated by a blank line. I am adding the students into an array list and parsing the fields into columns. My code for this is below and it works perfectly if I remove the blank lines in the text file, but when I keep the blank lines I am getting an ArrayIndexOutOfBoundsException. FIELD_SEP is defined as " " since the records are delimited by a space (e.g. lastname firstname score)
How do I skip these blank lines, given my code below? What am I doing wrong? THANKS!
Note that I have tried adding and if statement to check for length == 0 but I just get into an endless if/while loop.