Why does this work:
List> list = new LinkedList();
while this gives a type dismatch error:
List
I know this is and post, but I don't seem how the answers fixed c0d3x's problem.
If you do
List> list = new LinkedList>();
How is he gonna call this method for each inner Integer list in the outer list?
public void doSomeThingWithAIntegerList(List list){
for(Integer i : list){
// use it for some purpose
}
}