Why does this work:
List<?> list = new LinkedList<Integer>();
while this gives a type dismatch error:
List<List<?>> list = new LinkedList<List<Integer>>();
Why is this?
Ist there a way around this, without using raw types?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…