单选题Given: 11.double input = 314159.26; 12.NumberFormat nf = NumberFormat.getInstance(Locale.ITALIAN); 13.String b; 14.//insert code here Which code, inserted at line 14, sets the value of b to 314.159,26?()A b = nf.parse( input );B b = nf.format( input );

题目
单选题
Given: 11.double input = 314159.26; 12.NumberFormat nf = NumberFormat.getInstance(Locale.ITALIAN); 13.String b; 14.//insert code here Which code, inserted at line 14, sets the value of b to 314.159,26?()
A

b = nf.parse( input );

B

b = nf.format( input );

C

b = nf.equals( input );

D

b = nf.parseObject( input );


相似考题
参考答案和解析
正确答案: D
解析: 暂无解析