public class XConsole extends java.lang.Object implements IConsole
| Constructor and Description |
|---|
XConsole()
Public standard-constructor for objects of Type XConsole.
|
| Modifier and Type | Method and Description |
|---|---|
int |
readInteger()
Input of an integral number.
|
int |
readInteger(java.lang.String prompt)
Input of an integral number.
|
float |
readNumber()
Input of a floating-point number.
|
float |
readNumber(java.lang.String prompt)
Input of a floating-point number.
|
java.lang.String |
readText()
Input of a line of text.
|
java.lang.String |
readText(java.lang.String prompt)
Input of a line of text.
|
void |
write(float number)
Output of a floating-point number without line break.
|
void |
write(int integer)
Output of an integral number without line break.
|
void |
write(java.lang.String text)
Output of text without line break.
|
void |
writeLine(float number)
Output of a floating-point number with line break.
|
void |
writeLine(int integer)
Output of an integral number with line break.
|
void |
writeLine(java.lang.String text)
Output of text with line break.
|
public XConsole()
public int readInteger()
IConsolereadInteger in interface IConsolepublic int readInteger(java.lang.String prompt)
IConsolereadInteger in interface IConsoleprompt - the prompt that is displayed to the user prior to the inputpublic float readNumber()
IConsolereadNumber in interface IConsolepublic float readNumber(java.lang.String prompt)
IConsolereadNumber in interface IConsoleprompt - the prompt that is displayed to the user prior to the inputpublic java.lang.String readText()
IConsolepublic java.lang.String readText(java.lang.String prompt)
IConsolepublic void write(float number)
IConsolepublic void write(int integer)
IConsolepublic void write(java.lang.String text)
IConsolepublic void writeLine(float number)
IConsolepublic void writeLine(int integer)
IConsole