Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » resolved: Is there something new with printf()/ (The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, Object))
resolved: Is there something new with printf()/ [message #926753] Fri, 28 September 2012 19:59 Go to previous message
Gregory Hansen is currently offline Gregory Hansen
Messages: 2
Registered: September 2012
Junior Member
I took several Java programming classes six and seven years ago. When I got a job six+ years ago, they didn't use Java. So, now I am trying to refresh my knowledge of Java using the textbook from seven years ago.

One of the example programs has the following command:

System.out.printf( "%-8s\t", metaData.getColumnName( i ) );

Now, when I enter this program, I get the following message:

"The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, Object)"

Even a simple command like "System.out.printf( "%s", "cow" );" returns the above error.

Please help me determine what I'm missing.

Thanks,
Gregory

[Updated on: Mon, 01 October 2012 00:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic:Testing new versions of a class
Next Topic:How to install Paho ?
Goto Forum:
  


Current Time: Wed May 22 11:01:14 EDT 2013

Powered by FUDForum. Page generated in 0.02176 seconds