|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodelisationreims.convertisseur.TextInterface
public class TextInterface
Text Interface for reading and showing a temperature
Constructor Summary | |
---|---|
TextInterface()
|
Method Summary | |
---|---|
double |
read(java.lang.String mesg,
java.lang.String error)
Read from the standard input a temperature |
void |
show(java.lang.String mesg,
double temp)
Show in the standard output a message for the user and a given tempearture |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextInterface()
Method Detail |
---|
public double read(java.lang.String mesg, java.lang.String error)
mesg
- message to be presented to the user before readingerror
- error message to be presented to the user if an input
mismatch exception raises
InputMismatchException
public void show(java.lang.String mesg, double temp)
mesg
- message to be presented to the user before the temperaturetemp
- temperature to be presented to the user
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |