+ 3

How can I skip empty rows when reading a csv file using Scanner in java?

It seems to me that the problem is with the delimiter. When I print out my lines the empty lines are printed like this: ,,,,

22nd Jan 2021, 12:22 AM
Sattar
Sattar - avatar
4 odpowiedzi
+ 6
You haven't provided any code snippets. So we can't see what you're doing. But maybe this will help you 👇 https://stackoverflow.com/questions/31578362/skip-empty-row-in-csv-file-using-java
22nd Jan 2021, 1:48 AM
Minho
Minho - avatar
+ 5
Then can you please attach your code snippet using the code-playground of sololearn?
22nd Jan 2021, 2:22 AM
Minho
Minho - avatar
+ 1
Yah my bad, I'm new on this app . I actually tried those solutions that you've sent the link to. But they didn't work for my code. Thanks anyways
22nd Jan 2021, 2:14 AM
Sattar
Sattar - avatar
+ 1
Actually i found a way to solve it. But I don't know if it's efficient. Please take a look https://code.sololearn.com/c8Pv4LYvu2yT/?ref=app
22nd Jan 2021, 2:33 AM
Sattar
Sattar - avatar