Here you can find the source of FahrenheitToCelcius(int temp)
public static int FahrenheitToCelcius(int temp)
//package com.java2s; public class Main { public static int FahrenheitToCelcius(int temp) { double celcius = (temp - 32) * 5 / 9; return (int) celcius; }//from w w w . jav a 2s .co m }