You are reading the line twice..
while ((read = in.readLine()) != null) { // here
read = in.readLine(); // and here
Related Contents:
- Scanner vs. BufferedReader
- Do I need to close() both FileReader and BufferedReader?
- Run .exe file in Java from file location
- Android Reading from an Input stream efficiently
- How to use BufferedReader in Java [closed]
- Using BufferedReader.readLine() in a while loop properly
- Reset buffer with BufferedReader in Java?
- Specific difference between bufferedreader and filereader
- Read special characters in java with BufferedReader [duplicate]
- SSLHandShakeException No Appropriate Protocol
- Read and Write Text in ANSI format
- What does a “Cannot find symbol” or “Cannot resolve symbol” error mean?
- Should I avoid the use of set(Preferred|Maximum|Minimum)Size methods in Java Swing?
- What is the difference between JSF, Servlet and JSP?
- How can I add to List
- Split Java String by New Line
- How to set time zone of a java.util.Date?
- How to fix the Hibernate “object references an unsaved transient instance – save the transient instance before flushing” error
- The difference between Classes, Objects, and Instances
- How to loop through a HashMap in JSP?
- How to read integer value from the standard input in Java
- How to add row in JTable?
- How to Create a Custom Appender in log4j2?
- Is it possible to use the instanceof operator in a switch statement?
- How to view the SQL queries issued by JPA?
- Platform independent paths in Java
- Java 8: Difference between method reference Bound Receiver and UnBound Receiver
- Understanding java.util.Calendar WEEK_OF_YEAR [duplicate]
- ANDROID: email client receiver email id empty in android-parse
- Advantage of set and get methods vs public variable [duplicate]
- How to format a Java string with leading zero? [duplicate]
- Save child objects automatically using JPA Hibernate
- The easiest way to transform collection to array?
- Java GIF animation not repainting correctly
- How do I get whole and fractional parts from double in JSP/Java?
- Java: Infinite loop using Scanner in.hasNextInt()
- What is the difference between bounded wildcard and type parameters?
- Java conditional operator ?: result type
- Oozie: Launch Map-Reduce from Oozie action?
- Explain why constructor inject is better than other options [duplicate]
- How to use readline() method in Java?
- Is there an implementation of JSR-303 (bean validation) available?
- How to load a resource bundle from a file resource in Java?
- Why are constructors not inherited in java?
- How to increase an array’s length
- Java: how to convert HashMap to array
- How to use the same C++ code for Android and iOS?
- Bumblebee Android studio Plugin [id: ‘com.android.application’, version: ‘7.1.0’, apply: false] was not found in any of the following sources:
- Java generics, nested collection of wildcard
- Why is subtracting these two epoch-milli Times (in year 1927) giving a strange result?