Advertisement

05.16.2008 at 02:59AM PDT, ID: 23407759
[x]
Attachment Details

Eclipse doesnt like String.format

Asked by bravotango in Java Programming Language

Tags: Java

Hello experts,
I am just trying to learn to use Eclipse and I have the following code snippet which works OK in NetBeans but in Eclipse I get error:-
The method format(String, Object[]) in the type String is not applicable for the arguments (String, double)

result.append("  Collector Area:," + String.format("%6.1f", (double)Area) + ", (sqft)" + NEW_LINE);Start Free Trial
[+][-]05.16.2008 at 03:02AM PDT, ID: 21581384

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Programming Language
Tags: Java
Sign Up Now!
Solution Provided By: CEHJ
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.16.2008 at 03:20AM PDT, ID: 21581469

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 03:28AM PDT, ID: 21581507

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 04:36AM PDT, ID: 21581812

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.16.2008 at 04:48AM PDT, ID: 21581853

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628