📅  最后修改于: 2022-03-11 14:55:25.037000             🧑  作者: Mango
The hasNext() method checks if the Scanner has another token in its input.
A Scanner breaks its input into tokens using a delimiter pattern,
which matches whitespace by default.
That is, hasNext() checks the input and returns true if it has another non-whitespace character.