问题:
Given a pre-generics implementation of a method:
What three changes allow the class to be used with generics and avoid an unchecked warning?()
A . Remove line 14.
B . Replace line 14 with "int i = iter.next();".
C . Replace line 13 with "for (int i : intList) {".
D . Replace line 13 with "for (Iterator iter : intList) {".
E . Replace the method declaration with "sum(List
Given a pre-generics implementation of a method:
What three changes allow the class to be used with generics and avoid an unchecked warning?()
● 参考解析
本题暂无解析
相关内容
相关标签