Given the code fragment:
You want to display the value of currency as $100.00.
Which code inserted on line 1 will accomplish this?
NumberFormat formatter = NumberFormat.getInstance(locale).getCurrency();
NumberFormat formatter = NumberFormat.getCurrency(locale);
NumberFormat formatter = NumberFormat.getInstance(locale);
NumberFormat formatter = NumberFormat.getCurrencyInstance(locale);
Submit