![]() |
|
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Hobbyist Programmer
Join Date: Feb 2006
Posts: 214
Rep Power: 0
![]() |
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. |
|
|
|
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |