11. //insert code here
12. private N min, max;
13. public N getMin() { return min; }
14. public N getMax() { return max; }
15. public void add(N added) {
16. if(min == null added.doubleValue() < min =" added;" max ="=""> max.doubleValue())
19. max = added;
20. }
21. }
Which two, inserted at line 11, will allow the code to compile? (Choose two.)
A. public class MinMax{
B. public class MinMax{
C. public class MinMax
D. public class MinMax
E. public class MinMax{
F. public class MinMax
答案:DF
參考:11-1-2 Wrapper類別、12-3 泛型
答案選擇群錯誤
回覆刪除還有題目也不完全
回覆刪除