1

Does Java implement w-linkedlist as the implementation of java.util.LinkedList? If not, which algorithm is implemented?

Edit: Please read doubly-linkedlist (generally 'w' character is used casually for doubly)

shaILU
  • 2,050
  • 3
  • 21
  • 40
  • 3
    What is a w-linkedlist ? – krammer Oct 25 '12 at 08:28
  • 1
    Have a look at this question: [Where can I see the Sun Java source code?](http://stackoverflow.com/questions/261015/where-can-i-see-the-sun-java-source-code) – nkr Oct 25 '12 at 08:35

2 Answers2

4

This might be a starting point:

java.util.LinkedList

Andrei Sfat
  • 8,440
  • 5
  • 49
  • 69
1

If I correctly understand your question, then the answer will be Yes, because the LinkedList.Node class contains links to the previous and the next elements:

Node<E> next;
Node<E> prev;
Andremoniy
  • 34,031
  • 20
  • 135
  • 241