Originally posted by jas oberai:
I tried this :
System.out.printf( "%s %s %s %d %d %d %f \n",....)
for String,String,String,int,int,int,double
If you actually had passed those arguments to that format string, jas, it would have worked, so I don't think you did. My guess is that the 4th arg you passed was a string, which is what caused the error message "d != java.lang.String", meaning that a "d" format specifier can't deal with a string. So I repeat:
Your format string doesn't match the list of arguments that you are passing to it.
If you still can't get it to work, show us the complete printf statement, so we can see what args you are actually passing, not just what args you think you are passing.
[ October 10, 2005: Message edited by: Kym Thompson ]