title: Linked List in Java method implementation
body: <p>Now Im preparing for coding interview and I have 1 question regarding linked list in  Java. Can you tell me some reliable sources from which I can learn and practice the basic linked list methods. I liked this one: www.cs.cmu.edu/~adamchik/15-121/lectures/Linked%20Lists/code/LinkedList.java but I'm confused with some method implementations. For example the method  E get(int pos) returns NOT node but the data E contained in the node at position pos. While here <a href="http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/java/util/LinkedList.java#LinkedList" rel="nofollow">http://grepcode.com/file/repository.grepcode.com/java/root/jdk/openjdk/7u40-b43/java/util/LinkedList.java#LinkedList</a> the method  Node node(int index) returns the node at that position (not the data contained in it). Which implementation should I follow? </p>