Problems with printf
Hi..
I have recently updated to 1.5 java version. I wrote a simple program but it seems to be having some problem with some commands (only). Say printf.
I get the following error on compilation.
The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, double)
The errorneous code is:
double pi = Math.PI;
System.out.printf ("pi = %5.3f%n", pi);
Same is the case with integers and other types.
I use eclipse 3.0.1 version and I have imported the latest jre system library to the env. Any idea why this is happening?
Cheers,
-Lal

