软件包 | 描述 |
---|---|
java.io |
通过数据流、序列化和文件系统提供系统的输入和输出。
|
java.lang |
提供对java编程语言的设计基础课。
|
Modifier and Type | Method and Description |
---|---|
Console |
Console.format(String fmt, Object... args)
使用指定的格式字符串和参数,将格式化的字符串写入到控制台的输出流中。
|
Console |
Console.printf(String format, Object... args)
使用指定的格式字符串和参数将格式化的字符串写入该控制台的输出流的方便方法。
|
Modifier and Type | Method and Description |
---|---|
static Console |
System.console()
返回与当前java虚拟机相关的独特的
Console 对象,如果任何。
|
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.