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