You are viewing a single comment's thread. Return to all comments →
It's not actually.When there is no more line of inputs the hasNext method returns false and the loop terminates.
Java End-of-file
You are viewing a single comment's thread. Return to all comments →
It's not actually.When there is no more line of inputs the hasNext method returns false and the loop terminates.