SyntaxFix
Write A Post
Hire A Developer
Questions
The Scanner will continue to read until it finds an "end of file" condition.
Scanner
As you're reading from stdin, that'll either be when you send an EOF character (usually ^d on Unix), or at the end of the file if you use < style redirection.
stdin
^d
<