|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodelisationreims.convertisseur.TemperatureConverter
public class TemperatureConverter
Temperature Converter convertes temperature from °C to °F and vice-versa
Constructor Summary | |
---|---|
TemperatureConverter()
|
Method Summary | |
---|---|
static double |
toCelcius(double temp)
Convert a temperature to Celcius by considering that temperature is originally in °F. |
static double |
toFahrenheit(double temp)
Convert a temperature to Fahrenheit by considering that the temperature is originally in °C. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemperatureConverter()
Method Detail |
---|
public static double toCelcius(double temp)
public static double toFahrenheit(double temp)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |