Solved

Which Statement Establishes a Currency Decimal Format So That the Variable

Question 7

Multiple Choice

Which statement establishes a currency decimal format so that the variable itemCost is displayed in U.S. dollar format in the following statement? USdollars.format(itemCost) ) ;


A) new USdollars = DecimalFormat("$###,###.##") ;
B) CurrencyFormat USdollars = new CurrencyFormat("$###,###.##") ;
C) DecimalFormat USdollars = new DecimalFormat("$###,###.##") ;
D) new USdollars = CurrencyFormat("$###,###.##") ;

Correct Answer:

verifed

Verified

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

Related Questions