The method add(capture#2-of ? super Integer) in the type List<capture#2-of ? super Integer> is not applicable for the arguments (Number)
public static void down(List<? super Integer> numberList) {
Number x = 4;
numberList.add(x);
}
add方法报错
PIPIONE
相关分类