public class TemperatureConversion
extends java.lang.Object
Constructor and Description |
---|
TemperatureConversion() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static void main(java.lang.String[] args)
args
- not used in this implementationspublic 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).