public final class StdOut extends Object
For additional documentation, see Section 1.5 of Introduction to Programming in Java: An Interdisciplinary Approach by Robert Sedgewick and Kevin Wayne.
Modifier and Type | Method and Description |
---|---|
static void |
close()
Close standard output.
|
static void |
main(String[] args) |
static void |
print()
Flush standard output.
|
static void |
print(boolean x)
Print a boolean to standard output and flush standard output.
|
static void |
print(byte x)
Print a byte to standard output and flush standard output.
|
static void |
print(char x)
Print a char to standard output and flush standard output.
|
static void |
print(double x)
Print a double to standard output and flush standard output.
|
static void |
print(float x)
Print a float to standard output and flush standard output.
|
static void |
print(int x)
Print an int to standard output and flush standard output.
|
static void |
print(long x)
Print a long to standard output and flush standard output.
|
static void |
print(Object x)
Print an Object to standard output and flush standard output.
|
static void |
print(short x)
Print a short to standard output and flush standard output.
|
static void |
printf(Locale locale,
String format,
Object... args)
Print a formatted string to standard output using the specified
locale, format string, and arguments, and flush standard output.
|
static void |
printf(String format,
Object... args)
Print a formatted string to standard output using the specified
format string and arguments, and flush standard output.
|
static void |
println()
Terminate the current line by printing the line separator string.
|
static void |
println(boolean x)
Print a boolean to standard output and then terminate the line.
|
static void |
println(byte x)
Print a byte to standard output and then terminate the line.
|
static void |
println(char x)
Print a char to standard output and then terminate the line.
|
static void |
println(double x)
Print a double to standard output and then terminate the line.
|
static void |
println(float x)
Print a float to standard output and then terminate the line.
|
static void |
println(int x)
Print an int to standard output and then terminate the line.
|
static void |
println(long x)
Print a long to standard output and then terminate the line.
|
static void |
println(Object x)
Print an object to standard output and then terminate the line.
|
static void |
println(short x)
Print a short to standard output and then terminate the line.
|
public static void close()
public static void println()
public static void println(Object x)
public static void println(boolean x)
public static void println(char x)
public static void println(double x)
public static void println(float x)
public static void println(int x)
public static void println(long x)
public static void println(short x)
public static void println(byte x)
public static void print()
public static void print(Object x)
public static void print(boolean x)
public static void print(char x)
public static void print(double x)
public static void print(float x)
public static void print(int x)
public static void print(long x)
public static void print(short x)
public static void print(byte x)
public static void printf(String format, Object... args)
public static void printf(Locale locale, String format, Object... args)
public static void main(String[] args)