import java.io.*; public class Fahrenheit { public static void main (String[] args) throws IOException { System.out.print ("Enter temperature in celsius: "); InputStreamReader reader = new InputStreamReader (System.in); BufferedReader input = new BufferedReader (reader); String celsius_string = input.readLine (); double celsius = new Double (celsius_string).doubleValue (); double fahrenheit = (1.8 * celsius) + 32; System.out.println (celsius + " Celsius equals " + fahrenheit + " Fahrenheit"); } }