SyntaxFix
Write A Post
Hire A Developer
Questions
Try to use r.hasNext() instead of r.hasNextLine():
while(r.hasNext()) { scan = r.next();