|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectTemperatureConversion
public class TemperatureConversion
The TemperatureConversion Java application prints a table converting Celsius to Fahrenheit degrees.
| Constructor Summary | |
|---|---|
TemperatureConversion()
|
|
| Method Summary | |
|---|---|
static double |
celsiusToFahrenheit(double c)
Convert a temperature from Celsius degrees to Fahrenheit degrees. |
static void |
main(java.lang.String[] args)
The main method prints a Celsius to Fahrenheit conversion table. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TemperatureConversion()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
public static double celsiusToFahrenheit(double c)
c - a temperature in Celsius degreesjava.lang.IllegalArgumentException - Indicates that c is less than the smallest Celsius
temperature (-273.16).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||