[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: java Printstream printf()
|
- From: jusloh@xxxxxxxxxxxxxx (Justin Loh)
- Date: Tue, 26 Apr 2005 15:28:09 +0000 (UTC)
- Newsgroups: eclipse.newcomer
- Organization: not organized
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
I know about content assist but it does not solve the problem. javac.exe
compiles OK with the same program but Eclipse just complains with the
exception message reported. Why??? The same problem is reported by Tim
Julian:
21.04. * System.out.printf Broken? Tim Julian
25.04. `* Re: System.out.printf Broken? Chris Laffra
26.04. +- Re: System.out.printf Broken? Tim Julian
26.04. `- Re: System.out.printf Broken? Tim Julian
But his case is with:
System.out.printf( "Product is %d\n", result );
It says .printf is expecting an object[] and not an int!
Eclipse did not go well with String.format method too and reports the
similar exception message.
All I know is that all these two methods are new methods in JDK1.5.0_02
version and Eclipse just don't how to deal with them (I did set the
preference>java setting to JRE1.5.0_02).
Regards,
Justin Loh