You are reading the line twice..
while ((read = in.readLine()) != null) { // here
read = in.readLine(); // and here
More Related Contents:
- Unable to read a file
- 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?
- Closing BufferedReader and System.in
- Specific difference between bufferedreader and filereader
- Read special characters in java with BufferedReader [duplicate]
- Java using scanner enter key pressed
- SSLHandShakeException No Appropriate Protocol
- What are mark and reset in BufferedReader?
- Difference between java.io.PrintWriter and java.io.BufferedWriter?
- Read and Write Text in ANSI format
- How can I remove punctuation from input text in Java?
- Regex date validation for yyyy-mm-dd [duplicate]
- How can I set size of a button?
- Connection pooling in java using HttpClient [closed]
- Java NoSuchAlgorithmException – SunJSSE, sun.security.ssl.SSLContextImpl$DefaultSSLContext
- In Maven, how can I dynamically build a property value at runtime?
- How does one use polymorphism instead of instanceof? (And why?)
- Make Jackson use a custom deserializer everywhere (for a type which isn’t mine)
- What are the Java regular expressions for matching IPv4 and IPv6 strings?
- convert little Endian file into big Endian
- How to add a value marker to JavaFX chart?
- How do I Combine or Merge Small ORC files into Larger ORC file?
- Why can’t I refer to an instance method while explicitly invoking a constructor?
- Is it OK to have one instance of SQLiteOpenHelper shared by all Activities in an Android application?