📜  scan.hasnext 做了什么 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:25.037000             🧑  作者: Mango

代码示例1
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.