Beginner needs help with simple code.

I just statrted learnind java, and I need some help with this simple program. For some reason everytime I enter my Farenheit value, the Celsius conversion returns as 0.0. Would really appreciate the help. Thanks.

Here's the code:

public class TempConverter

{

public static void main(String[] args)

{

double F = Double.parseDouble(args[0]);

System.out.println("Temperature in Farenheit is: " + F);

double C = 5 / 9;

C *= (F - 32);

System.out.println("Temperature in Celsius is: " + C);

}

}

[568 byte] By [sine0] at [2007-9-30 23:15:55]
# 1
> double C = 5 / 9This considers "5" and "9" to be integers and does an integer division, discarding the remainder. The result of that division is 0. Trydouble C = 5.0/9.0;
DrClap at 2007-7-7 13:48:25 > top of Java-index,Security,Event Handling...
# 2
double C = 5 / 9;The 5 and 9 are integers which divide to an integer.Try 5.0/9.0
jeremiahrounds at 2007-7-7 13:48:25 > top of Java-index,Security,Event Handling...