当前位置:SCJP程序员认证考试题库

问题:

[多选]

NumberFormat nf= NumberFormat.getInstance(); 
nf.setMaximumFractionDigits(4); 
nf.setMinimumFractionDigits(2); 
String a = nf.format(3.1415926); 
String b = nf.format(2); 
Which two are true about the result if the default locale is Locale.US?()

A .  The value of b is 2.
B .  The value of a is 3.14.
C .  The value of b is 2.00.
D .  The value of a is 3.141.
E .  The value of a is 3.1415.
F .  The value of a is 3.1416.
G .  The value of b is 2.0000.

我国书刊发行机构和发行渠道有()、()、()、()。 如何进行监控仪表的维护管理? 保险期限是影响客户未来收入的一个重要因素之一。 英国是信托业务的发源地,也是个人信托业务最发达的国家。 怎样制作焊动圈表张丝的专用工具?

NumberFormat nf= NumberFormat.getInstance(); 
nf.setMaximumFractionDigits(4); 
nf.setMinimumFractionDigits(2); 
String a = nf.format(3.1415926); 
String b = nf.format(2); 
Which two are true about the result if the default locale is Locale.US?()

参考答案:

  参考解析

本题暂无解析

在线 客服