Quick LinkedList question
It seems that this is a proper way to declate and create a LinkedList
Why the following declaration does not allow me to get a full access to LinkedList methods?
private LinkedList<String> linkedList = new LinkedList<String>();
Is be because that List Interface is too generic?
private List<String> linkedList = new LinkedList<String>();
If so, why does the following declaration fails to give me access to LinkedList specific methods as well?
The way i understand it is that, the relationship is:
private AbstractSequentialList<String> linkedList1 = new LinkedList<String>();
List --> AbstractList --> AbstractSequentialList --> Linked List
Please help me understand this