append and double error?

Hello. After converting my program to display in a text area. It works fine if I comment out the line that is supposed to give me the total inventory value. If I leave it in, I get the error:

append(java.lang.String) in javax.swing.JTextArea cannot be applied to (java.lang.String,double)

ta.append("Total value of all inventory = $%.2f", Product.getTotalValueOfAllInventory(inventory));

Do I need to change the double references in all three classes to int or? I appreciate any light anyone can shine on this. Even a link of where to look at how double and append may interact. Thanks

[610 byte] By [javanewbie75a] at [2007-11-27 4:30:04]
# 1
Try changing "append" to some other word if this is your method. Java makes extensive use of this word as method names. If you are trying to use one of Java's append methods, read the documentation for the correct usage.
ChuckBinga at 2007-7-12 9:39:15 > top of Java-index,Java Essentials,New To Java...
# 2
Thanks
javanewbie75a at 2007-7-12 9:39:15 > top of Java-index,Java Essentials,New To Java...