|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--asd_library.tree.bstree.ConsoleReader
This class reads strings and numbers from a generic input stream. Creates a buffered input reader, catches I/O exceptions and converts strings into numbers.
Constructor Summary | |
ConsoleReader(java.io.InputStream inStream)
Creates a console reader on an input stream, as System.in |
Method Summary | |
double |
readDouble()
Legge una riga di input e la converte in un numero in virgola Mobile. |
int |
readInt()
Reads an input line and converts it in a e la converte in un integer. |
java.lang.String |
readLine()
Legge una riga di input. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConsoleReader(java.io.InputStream inStream)
inStream
- un flusso di inputMethod Detail |
public int readInt()
public double readDouble()
public java.lang.String readLine()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |