|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--TerminalIO.ScreenWriter
The class ScreenWriter contains output methods for terminal I/O. Type-specific methods write Boolean, characters, integers, decimal numbers, strings, and objects to the terminal window. Examples:
ScreenWriter writer = new ScreenWriter(); writer.println("The cat sat on the mat.");
Constructor Summary | |
ScreenWriter()
|
Method Summary | |
void |
print(boolean x)
Prints 'true' or 'false'. |
void |
print(char x)
Prints a character. |
void |
print(double x)
Prints a double. |
void |
print(float x)
Prints a float. |
void |
print(int x)
Prints an integer. |
void |
print(long x)
Prints a long. |
void |
print(java.lang.Object x)
Prints the string representation of an object. |
void |
print(java.lang.String x)
Prints a string. |
void |
println()
Prints a new line. |
void |
println(boolean x)
Prints a boolean followed by a new line. |
void |
println(char x)
Prints a char followed by a new line. |
void |
println(double x)
Prints a double followed by a new line. |
void |
println(float x)
Prints a float followed by a new line. |
void |
println(int x)
Prints an integer followed by a new line. |
void |
println(long x)
Prints a long followed by a new line. |
void |
println(java.lang.Object x)
Prints the string representation of an object followed by a new line. |
void |
println(java.lang.String x)
Prints a string followed by a new line. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScreenWriter()
Method Detail |
public void print(boolean x)
x
- the value to be printed.public void print(char x)
x
- the value to be printed.public void print(double x)
x
- the value to be printed.public void print(float x)
x
- the value to be printed.public void print(int x)
x
- the value to be printed.public void print(long x)
x
- the value to be printed.public void print(java.lang.Object x)
x
- the object to be printed.public void print(java.lang.String x)
x
- the value to be printed.public void println()
public void println(boolean x)
x
- the value to be printed.public void println(char x)
x
- the value to be printed.public void println(double x)
x
- the value to be printed.public void println(float x)
x
- the value to be printed.public void println(int x)
x
- the value to be printed.public void println(long x)
x
- the value to be printed.public void println(java.lang.Object x)
x
- the object to be printed.public void println(java.lang.String x)
x
- the value to be printed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |