need to have a formater -> two cases left -> CD
static NumberFormat getInstance() is like getNumberInstance()
Returns a general-purpose number format
public static final NumberFormat getCurrencyInstance(Locale inLocale)
Returns a currency format for the specified locale
answer: D
answer : D
A. not correct
NumberFormat formatter = NumberFormat.getInstance(locale).getCurrency();
public Currency getCurrency()
returns Currency type
B. not correct
NumberFormat.getCurrency(locale)
public Currency getCurrency()
there is no parametr in this method
C. not correct
NumberFormat.getInstance(locale)
formatter.format(currency) returns 100.00
general-purpose number format
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ASPushkin
5 days, 23 hours agoASPushkin
2 months, 2 weeks agojames2033
1 year, 1 month agoLebannin
1 year, 4 months agoStavok
1 year, 5 months agoMukes877
1 year, 6 months agoiCOW
1 year, 7 months agobharathdave
1 year, 7 months agoAnkit1010
1 year, 10 months agoalex_kon
2 years agoLeksh_geeth
2 years, 1 month ago