SyntaxFix
Write A Post
Hire A Developer
Questions
You can't explicitly clear Scanner's buffer. Internally, it may clear the buffer after a token is read, but that's an implementation detail outside of the porgrammers' reach.