Given: 12. NumberFormat nf = NumberFormat.getInstance(); 13. nf.setMaximumFractionDigits(4); 14. nf.setMinimumFractionDigits(2); 15. String a = nf.format(3.1415926); 16. String b = nf.format(2); Which two statements are true about the result if the default locale is Locale.US?()
- A、 The value of b is 2.00.
- B、 The value of a is 3.141.
- C、 The value of a is 3.14.
- D、 The value of b is 2.0000.
- E、 The value of a is 3.1415.
- F、 The value of a is 3.1416.
- G、 The value of b is 2.
正确答案:A,F
答案解析:有
微信扫一扫手机做题