I have been messing around with java for a small while now,
i can already code with C.
Can anyone tell me however why the following wont print
double fahrenheit = 500;
double celsius = (fahrenheit - 32) * (5/9.0);
System.out.println("The value is: %5.2f",celsius);
But if i printed
double fahrenheit = 500;
double celsius = (fahrenheit - 32) * (5/9.0);
System.out.println("The value is: "+celsius);
it would just print what is stored in celsius.
I understand that celsius is a a double so why wont it print when do it the first way