请看以下代码,为什么不能编译呢- import java.util.*;
- public class GenerClass {
-
- public GenerClass() {
- }
-
-
- public static <E extends Number> List<? super E> process(List<E> nums)
- {
- return null;
- }
-
-
-
- public static void main(String[] args) {
-
- List<Integer> input = new ArrayList<Integer>(0);
- List<Integer> output = process(input);
-
-
- }
- }
复制代码 |
|