Write Java statements to apply currency formatting to the number 100. Indicate the package you need to import.

What will be an ideal response?

```
import java.text.NumberFormat;
NumberFormat nfMoney = NumberFormat.getCurrencyInstance();
System.out.println(nfMoney.format(100));
```

Computer Science & Information Technology

You might also like to view...

What is Processing scripts?

What will be an ideal response?

Computer Science & Information Technology

A ____ is a set of elements of the same type in which the elements are added at one end.

A. hash table B. tree C. queue D. network

Computer Science & Information Technology