public class SystemConsole
extends java.lang.Object
| Constructor and Description |
|---|
SystemConsole() |
| Modifier and Type | Method and Description |
|---|---|
void |
format(java.lang.String fmt,
java.lang.Object... args)
Output the given format string to the current system console.
|
java.lang.String |
readLine(java.lang.String prompt,
java.lang.Object... args)
Reads a line from the console.
|
char[] |
readPassword(java.lang.String prompt)
Reads a password from the console.
|
public java.lang.String readLine(java.lang.String prompt,
java.lang.Object... args)
prompt - the command line promptargs - any arguments for the promptpublic char[] readPassword(java.lang.String prompt)
prompt - the command line promptpublic void format(java.lang.String fmt,
java.lang.Object... args)
fmt - the format string to outputargs - any message arguments