Select four examples that initialize a NumberFormat reference using a factory.

Select four examples that initialize a NumberFormat reference using a factory.

Select four examples that initialize a NumberFormat reference using a factory.

A.
NumberFormat nf5 = DecimalFormat.getNumberInstance ();

B.
NumberFormat nf6 = NumberFormat.getCurrencyInstance () ;

C.
NumberFormat nf4 = NumberFormat.getIntegerInstance();

D.
NumberFormat nf3 = NumberFormat.getInstance();

E.
NumberFormat nf2 = new DecimalFormat(“0.00”) ;

F.
NumberFormat nf1 = new DecimalFormat();



Leave a Reply 1

Your email address will not be published. Required fields are marked *