first, you use fileReader.hasNextLine() to determine whether there are data
but fileReader.hasNextLine() always true;

second, in first while() you have not through fileReader.next to extract...