Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Saji JosephJohn

Greenhorn
+ Follow
since Oct 14, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Saji JosephJohn

Hi All
I am a novice for Java, just trying out to master the skills.
I am doing a self assignment in which I read data from a csv file or text file and print the no of lines
Now my text file has empty lines, I want to skip reading the empty line. The code which I have written takes all the lines and print the no of lines, I am posting my code here, please check it and guide me on how to avoid reading empty lines and go to next line.
My present code is

Please guide and advice me on how to skip the empty lines, while counting
7 years ago