import java.util.Scanner; public class Temp2 { public static void main(String[] args) { double fahrenheit; double celcius; Scanner input = new Scanner(System.in); System.out.print("Enter a temperature in Fahrenheit: "); fahrenheit = input.nextDouble(); if (fahrenheit < -273.15) throw new IllegalArgumentException("Temperature must be at least -273.15"); System.out.print(fahrenheit + " Fahrenheit is "); celcius = 5.0 / 9 * (fahrenheit - 32.0); System.out.println(celcius + " Celcius"); } }