public interface IConsole
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.
|
int readInteger()
int readInteger(java.lang.String prompt)
prompt
- the prompt that is displayed to the user prior to the inputfloat readNumber()
float readNumber(java.lang.String prompt)
prompt
- the prompt that is displayed to the user prior to the inputjava.lang.String readText()
java.lang.String readText(java.lang.String prompt)
prompt
- the prompt that is displayed to the user prior to the inputvoid write(float number)
number
- the floating-point number that is to be displayed on the screenvoid write(int integer)
integer
- the integer that is to be displayed on the screenvoid write(java.lang.String text)
text
- the text that is to be displayed on the screenvoid writeLine(float number)
number
- the floating-point number that is to be displayed on the screenvoid writeLine(int integer)
integer
- the integer that is to be displayed on the screenvoid writeLine(java.lang.String text)
text
- the text that is to be displayed on the screen