You are viewing a single comment's thread. Return to all comments →
You can use a while loop to look for it
e.g.
while (scanner.hasNextLine())
If there is no next line it will terminate the loop
Seems like cookies are disabled on this browser, please enable them to open this website
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
You can use a while loop to look for it
e.g.
while (scanner.hasNextLine())
If there is no next line it will terminate the loop