You are trying to convert each line of the file into an integer,

nextInt = Integer.parseInt(nextItem);


So when you hit a text string containing non numeric characters you are going to have a...