Scanner.eof

bool eof()

Returns true if the scanner has reached the end of the file or text buffer.

Returns

true if the scanner has reached the end of

the file or text buffer