SyntaxFix
Write A Post
Hire A Developer
Questions
You read line through while loop and through the loop you read the next line ,so just read it in while loop
line
while
String s; while ((s=br.readLine()) != null) { System.out.println(s); }