scanner
-
A simple text scanner which can parse primitive types and strings using regular expressions.
-
A
Scanner
breaks its input into tokens using a delimiter pattern, which by default matches whitespace. - 一个简单的文本扫描器,它能够解析原始的类型还有字符串 使用正则表达式。
- 一个扫描器使用一个分隔符中断输入为令牌,在默认情况下会匹配空格。
-
(scanner.nextInt)
-
Scans the next token of the input as an int.
- 扫描下一个输入为整型的令牌。