// -------------------------- // CMPU-181, Spring 2013 // Jan. 23, 2013 // DayOneJava.java // -------------------------- // Sample java code for first day of class. public class DayOneJava { // fahrToCelsius // ------------------------------------ // INPUT: FAHR, a temperature in degrees fahrenheit // OUTPUT: Equivalent temperature in degrees celsius public static double fahrToCelsius (double fahr) { return (5./9.) * (fahr - 32.0); } } // After compiling, enter the following sorts of expressions // into the interactions window: // DayOneJava.fahrToCelsius(212.0)