|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.otherwise.jurtle.Console
The Console class contains an assortment of static methods for writing to and reading from the console panel (located below the display panel in the Jurtle user interface).
Method Summary | |
static void |
print(boolean b)
Print a boolean value. |
static void |
print(char c)
Print a character. |
static void |
print(double d)
Print a double-precision floating-point number. |
static void |
print(float f)
Print a floating-point number. |
static void |
print(int i)
Print an integer. |
static void |
print(long l)
Print a long integer. |
static void |
print(java.lang.Object obj)
Print an object. |
static void |
print(java.lang.String s)
Print a string. |
static void |
println()
Terminate the current line by writing the line separator string. |
static void |
println(boolean x)
Print a boolean and then terminate the line. |
static void |
println(char x)
Print a character and then terminate the line. |
static void |
println(double x)
Print a double and then terminate the line. |
static void |
println(float x)
Print a float and then terminate the line. |
static void |
println(int x)
Print an integer and then terminate the line. |
static void |
println(long x)
Print a long and then terminate the line. |
static void |
println(java.lang.Object x)
Print an Object and then terminate the line. |
static void |
println(java.lang.String x)
Print a String and then terminate the line. |
static boolean |
readBoolean()
Reads the next boolean. |
static char |
readChar()
Reads a character typed on the console |
static double |
readDouble()
Reads the next double (without validating its format). |
static float |
readFloat()
Reads the next float (without validating its format). |
static int |
readInt()
Reads the next integer (without validating its format). |
static java.lang.String |
readLine()
Reads a line of text from the console |
static long |
readLong()
Reads the next long (without validating its format). |
static java.lang.String |
readWord()
Skips whitespace and reads the next word (a string of consecutive non-whitespace characters up to but excluding the next space). |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void print(boolean b)
b
- The boolean
to be printedpublic static void print(char c)
c
- The char
to be printedpublic static void print(double d)
d
- The double
to be printedpublic static void print(float f)
f
- The float
to be printedpublic static void print(int i)
i
- The int
to be printedpublic static void print(long l)
l
- The long
to be printedpublic static void print(java.lang.Object obj)
obj
- The Object
to be printedpublic static void print(java.lang.String s)
s
- The String
to be printedpublic static void println()
public static void println(boolean x)
x
- The boolean
to be printedpublic static void println(char x)
x
- The char
to be printed.public static void println(double x)
x
- The double
to be printed.public static void println(float x)
x
- The float
to be printed.public static void println(int x)
x
- The int
to be printed.public static void println(long x)
x
- a The long
to be printed.public static void println(java.lang.Object x)
x
- The Object
to be printed.public static void println(java.lang.String x)
x
- The String
to be printed.public static boolean readBoolean()
public static char readChar()
public static double readDouble()
public static float readFloat()
public static int readInt()
public static java.lang.String readLine()
public static long readLong()
public static java.lang.String readWord()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |