can anybody tell me why generate follow result. thanks advance
Post by:Paul Sturrock
This looks like an assignment quetion. JavaRanch is a learning resource so we are strongly discouraged from posting staight answers to assignment questions. What do you think the answer is? Post your answer and people may comment on where you've gone wrong (if indeed you go wrong )
Post by:Jesper de Jong
LinkedList<String> list = new LinkedList<String>; //will not compile!!!
You cannot create arrays of concrete generic types. It's stupid, but it's a limitation of the way arrays and generics work in Java.