|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.unibas.utilita.Console
Questa classe consente di effettuare operazioni di lettura dallo standard input per i principali tipi di dato primitivi
Method Summary | |
static char |
leggiCarattere()
Preleva un carattere dallo standard input; costringe l'utente a ripetere l'immissione finche' il dato fornito non e' effettivamente un singolo carattere |
static double |
leggiDouble()
Preleva un numero reale di tipo double dallo standard input; costringe l'utente a ripetere l'immissione finche' il dato fornito non e' effettivamente un valore ammissibile per il tipo double |
static float |
leggiFloat()
Preleva un numero reale di tipo float dallo standard input; costringe l'utente a ripetere l'immissione finche' il dato fornito non e' effettivamente un valore ammissibile per il tipo float |
static int |
leggiIntero()
Preleva un numero intero dallo standard input; costringe l'utente a ripetere l'immissione finche' il dato fornito non e' effettivamente un valore ammissibile per il tipo int |
static java.lang.String |
leggiStringa()
Preleva una stringa dallo standard input |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.lang.String leggiStringa()
public static int leggiIntero()
public static float leggiFloat()
public static double leggiDouble()
public static char leggiCarattere()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |