BufferedReader is skipping every other line when reading my file in java

You are reading the line twice..

while ((read = in.readLine()) != null) { // here
            read = in.readLine();      // and here

Leave a Comment