Console

public final class Console extends Object
implements Flushable

Provides access to the console, if available. The system-wide instance can be accessed via console().

Public Method Summary

void
flush()
Flushes this stream by writing any buffered output to the underlying stream.
Console
format(String format, Object... args)
Writes a formatted string to the console using the specified format string and arguments.
Console
printf(String format, Object... args)
Equivalent to format(format, args).
String
readLine()
Reads a line from the console.
String
readLine(String format, Object... args)
Reads a line from this console, using the specified prompt.
char[]
readPassword()
This method is unimplemented on Android.
char[]
readPassword(String format, Object... args)
This method is unimplemented on Android.
Reader
reader()
Returns the Reader associated with this console.
PrintWriter