Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jan 10th, 2007, 8:52 PM   #1
Eric the Red
Hobbyist Programmer
 
Eric the Red's Avatar
 
Join Date: Feb 2006
Posts: 214
Rep Power: 0 Eric the Red is an unknown quantity at this point
printf Problem

String str = new String( "Java is object oriented.");
System.out.printf("|%s|%n", str);

The above code will work in "EditPlus" (which is what my college uses). While, it won't work in "Eclipse".

What would be the reason behind this?

Error:
The method printf(String, Object[]) in the type PrintStream is not applicable for the arguments (String, String)
__________________
Death smiles at us all. All a man can do is smile back.

Last edited by Eric the Red; Jan 10th, 2007 at 9:02 PM.
Eric the Red is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
500 Ways to Program Numbers 1 Through 10! Sane Coder's Corner Lounge 637 Jan 5th, 2008 11:15 PM
Custom Hashing Algorithms Sane C 21 Oct 16th, 2006 10:05 PM
complete newbie question melee28 C 36 Sep 11th, 2005 7:48 AM
problem with this calculator program designXperts.net Java 2 May 23rd, 2005 7:14 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:24 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC