|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--blue.io.IO
Used to read from the standard input stream or write to the standard output stream. Very useful for novice programmers.
Constructor Summary | |
IO()
|
Method Summary | |
static boolean |
done()
Returns true if the most recent message sent to IO had a "successful" outcome; false if not. |
static char |
next_char()
Tries to inspect the next token in the standard input stream; returns it. |
static void |
print(boolean b)
Writes the boolean to the standard output file. |
static void |
print(char c)
Writes the char to the standard output file. |
static void |
print(double f)
Writes the double to the standard output file. |
static void |
print(int i)
Writes the int to the standard output file. |
static void |
print(java.lang.Object o)
Write a 'token' of the object to the standard output stream. |
static void |
print(java.lang.String s)
Writes the String to the standard output file without delimiters. |
static void |
println()
Issues a new line command. |
static void |
println(boolean b)
Writes the boolean to the standard output file followed by a new line. |
static void |
println(char c)
Writes the char to the standard output file followed by a new line. |
static void |
println(double f)
Writes the double to the standard output file followed by a new line. |
static void |
println(int i)
Writes the int to the standard output file followed by a new line. |
static void |
println(java.lang.Object o)
Write a 'token' of the object to the standard output stream followed by a new line. |
static void |
println(java.lang.String s)
Writes the String to the standard output file without delimiters followed by a new line. |
static char |
read_char()
Tries to recognize the next token in the standard input stream as an char; returns it. |
static double |
read_double()
Tries to recognize the next token in the standard input stream as an double; returns it. |
static int |
read_int()
Tries to recognize the next token in the standard input stream as an int; returns it. |
static java.lang.String |
readString()
Tries to recognize the next token in the standard input stream as a String with no surrounding 'white space'; returns it. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public IO()
Method Detail |
public static boolean done()
public static int read_int()
public static void print(int i)
public static void println(int i)
public static double read_double()
public static void print(double f)
public static void println(double f)
public static char read_char()
public static char next_char()
public static void print(char c)
public static void println(char c)
public static void print(boolean b)
public static void println(boolean b)
public static java.lang.String readString()
public static void print(java.lang.String s)
public static void println(java.lang.String s)
public static void println()
public static void print(java.lang.Object o)
public static void println(java.lang.Object o)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |