I'm confused.
Where is the second lines call?
Where is the second lines call?
You're right, the hidden scanFile()...makes no sense.
It's stripping all the new lines from the input.
Why? What is going on?
Not the best method to use, probably better to use the Files.readString method.