Uses of Class
java.io.Console
Package
Description
Provides for system input and output through data streams,
serialization and the file system.
Provides classes that are fundamental to the design of the Java
programming language.
-
Uses of Console in java.io
Modifier and TypeMethodDescriptionWrites a formatted string to this console's output stream using the specified format string and arguments with thedefault format locale
.Writes a formatted string to this console's output stream using the specified format string and arguments with the specifiedlocale
.Preview.Writes a string representation of the specified object to this console's output stream and then flushes the console.A convenience method to write a formatted string to this console's output stream using the specified format string and arguments with thedefault format locale
.A convenience method to write a formatted string to this console's output stream using the specified format string and arguments with the specifiedlocale
.Console.println()
Preview.Terminates the current line in this console's output stream usingSystem.lineSeparator()
and then flushes the console.Preview.Writes a string representation of the specified object to this console's output stream, terminates the line usingSystem.lineSeparator()
and then flushes the console. -
Uses of Console in java.lang