public static double convertFromFarenheit (TemperatureScale to, double temperature) {

        switch(to) {

            case FARENHEIT:
                return temperature;
            case CELSIUS:
                return convertFarenheitToCelsius(temperature);
            case KELVIN:
                return convertFarenheitToKelvin(temperature);
            case RANKINE:
                return convertFarenheitToRankine(temperature);
            default:
                throw(new RuntimeException("Invalid termpature conversion"));
        }
    }
public static double convertFromFarenheit ( TemperatureScale to , double temperature ) { switch ( to ) { case FARENHEIT : return temperature ; case CELSIUS : return convertFarenheitToCelsius ( temperature ) ; case KELVIN : return convertFarenheitToKelvin ( temperature ) ; case RANKINE : return convertFarenheitToRankine ( temperature ) ; default : throw ( new RuntimeException ( "Invalid termpature conversion" ) ) ; } }
Convert a temperature value from the Farenheit temperature scale to another.

@param to TemperatureScale
@param temperature value in degrees Farenheit
@return converted temperature value in the requested to scale