You are reading the line twice..
while ((read = in.readLine()) != null) { // here
read = in.readLine(); // and here
You are reading the line twice..
while ((read = in.readLine()) != null) { // here
read = in.readLine(); // and here