@GwtCompatible
public class InputOutput
extends java.lang.Object
Constructor and Description |
---|
InputOutput() |
Modifier and Type | Method and Description |
---|---|
static <T> T |
print(T o)
Prints the given
object to System.out . |
static void |
println()
Prints a newline to standard out, by delegating directly to
System.out.println() |
static <T> T |
println(T object)
Prints the given
object to System.out and terminate the line. |
public static void println()
System.out.println()
public static <T> T println(T object)
object
to System.out
and terminate the line. Useful to log partial
expressions to trap errors, e.g. the following is possible: println(1 + println(2)) + 3
object
- the to-be-printed objectpublic static <T> T print(T o)
object
to System.out
. Useful to log partial expressions to trap
errors, e.g. the following is possible: 1 + print(2) + 3
o
- the to-be-printed object