問題詳情
147

Which code fragment, inserted at line 4, produces the output | 12.345|?
(A) System.out.printf("|%7d| n", d);
(B) System.out.printf("|%7f| n", d);
(C) System.out.printf("|%3.7d| n", d);
(D) System.out.printf("|%3.7f| n", d);
(E) System.out.printf("|%7.3d| n", d);(AB) System.out.printf("|%7.3f| n", d);
參考答案