软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
Modifier and Type | Method and Description |
---|---|
Scanner |
Scanner.reset()
重置该扫描仪。
|
Scanner |
Scanner.skip(Pattern pattern)
跳过输入匹配指定模式,忽略分隔符。
|
Scanner |
Scanner.skip(String pattern)
跳过输入匹配由指定的字符串模式。
|
Scanner |
Scanner.useDelimiter(Pattern pattern)
设置扫描仪的界定模式指定的模式。
|
Scanner |
Scanner.useDelimiter(String pattern)
设置扫描仪的界定模式构造从指定的
String 模式。
|
Scanner |
Scanner.useLocale(Locale locale)
将此扫描仪的区域设置为指定的区域设置。
|
Scanner |
Scanner.useRadix(int radix)
将此扫描仪的默认基数设置为指定的基数。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.