Solved

Which Statement Will Add a Dollar Sign and the Value

Question 17

Multiple Choice

Which statement will add a dollar sign and the value of the double variable balance to a JTextArea component called results?


A) results.addText("$" + balance) ;
B) results.append("$" + balance) ;
C) results.addText("$" + Double.parseDouble(balance) ) ;
D) results.append("$ + (String) balance") ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions