Here you can find the source of celsiusToFahrenheit(float celsius)
public static float celsiusToFahrenheit(float celsius)
//package com.java2s; //License from project: Open Source License public class Main { public static final float CELSIUS_TO_FAHRENHEIT_MULT = 9f / 5f; public static final float CELSIUS_TO_FARENHEIT_OFFSET = 32; public static float celsiusToFahrenheit(float celsius) { return (CELSIUS_TO_FAHRENHEIT_MULT * celsius) + CELSIUS_TO_FARENHEIT_OFFSET; }/*from ww w.j ava 2s .c o m*/ }