public interface Console
flush()
is called (which is
guaranteed to be done in a thread-safe way by the library).Modifier and Type | Method and Description |
---|---|
void |
flush()
Outputs all buffered messages to the console.
|
void |
print(java.lang.String s)
Prints a string without line break at the end (unless the string
itself specifies one).
|
void |
println(java.lang.String s)
Prints a string and automatically adds a line break at the end.
|
void println(java.lang.String s)
s
- the string to print.void print(java.lang.String s)
s
- the string to print.void flush()