Im doing a simple piece of java code here, it is a method being called to convert Fahrenheit into Celsius. However when ever i run it, the output is always 0.0
.
I cant get it to output the correct calculation. There is probably some silly little thing i have forgotten to do, can someone please help me?
public class ExampleQ {
public static void main(String[] args) {
System.out.println(Celsius(50));
}
public static double Celsius(double F)
{
return (5 / 9) * (F - 32);
}
}