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)