問題詳情

147  5e4cf0310030c.jpg
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);

參考答案

無參考答案

內容推薦

內容推薦