多选题 Given the proper imports, and given:
17. public void go() {
18. NumberFormat nf, nf2;
19. Number n;
20. Locale[] la = NumberFormat.getAvailableLocales();
21. for(int x=0; x < 10; x++) {
22. nf = NumberFormat.getCurrencyInstance(la[x]);
23. System.out.println(nf.format(123.456f));
24. }
25. nf2 = NumberFormat.getInstance();
26. n = nf2.parse("123.456f");
27. System.out.println(n);
28. }
Given that line 20 is legal, which are true? (Choose all that apply.)
【正确答案】 A
【答案解析】