|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectStdInput
The StdInput class provides methods to read basic type data from standard input.
Field Summary | |
private static int |
LineBufferLength
|
private static PushbackReader |
stdin
|
Constructor Summary | |
StdInput()
|
Method Summary | |
static char |
readChar()
Reads next character from standard input. |
static double |
readDouble()
Reads from standard input characters which represent a double . |
static float |
readFloat()
Reads from standard input characters which represent a float . |
static int |
readInt()
Reads from standard input characters which represent a int . |
static String |
readLine()
Reads up to the end of line characters from standard input, |
static void |
readln()
Go to next line from standard input, |
static char |
readlnChar()
Reads next character from standard input, and go to the first character of next line |
static double |
readlnDouble()
Reads from standard input characters which represent a double , and go to the first character of the next line. |
static float |
readlnFloat()
Reads from standard input characters which represent a float , and go to the first character of the next line. |
static int |
readlnInt()
Reads from standard input characters which represent a int , and go to the first character of the next line. |
static long |
readlnLong()
Reads from standard input characters which represent a long , and go to the first character of the next line. |
static short |
readlnShort()
Reads from standard input characters which represent a short , and go to the first character of the next line. |
static long |
readLong()
Reads from standard input characters which represent a long . |
private static long |
readLong(int radix)
|
private static double |
readNumber()
|
static short |
readShort()
Reads from standard input characters which represent a short . |
static String |
readString(int n)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static PushbackReader stdin
private static final int LineBufferLength
Constructor Detail |
public StdInput()
Method Detail |
private static long readLong(int radix) throws IOException
IOException
private static double readNumber() throws IOException
IOException
public static short readShort() throws IOException
short
. Leading spaces are skipped.
IOException
short
public static short readlnShort() throws IOException
short
, and go to the first character of the next line.
Leading spaces are skipped.
IOException
short
public static int readInt() throws IOException
int
. Leading spaces are skipped.
IOException
int
public static int readlnInt() throws IOException
int
, and go to the first character of the next line.
Leading spaces are skipped.
IOException
int
public static long readLong() throws IOException
long
. Leading spaces are skipped.
IOException
long
public static long readlnLong() throws IOException
long
, and go to the first character of the next line.
Leading spaces are skipped.
IOException
long
public static double readDouble() throws IOException
double
. Leading spaces are skipped.
IOException
double
public static double readlnDouble() throws IOException
double
, and go to the first character of the next line.
Leading spaces are skipped.
IOException
double
public static float readFloat() throws IOException
float
. Leading spaces are skipped.
IOException
float
public static float readlnFloat() throws IOException
float
, and go to the first character of the next line.
Leading spaces are skipped.
IOException
float
public static char readChar() throws IOException
IOException
char
public static char readlnChar() throws IOException
IOException
char
public static String readString(int n) throws IOException
IOException
public static String readLine() throws IOException
IOException
String
public static void readln() throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |