Linked Lists Tutorial: mycsresource.net

Linked Lists

Excellent Computer Science resource with tutorials and Java code examples at mycsresource.net – this was very helpful to me in my CS courses…

Linked Lists are a very common way of storing arrays of data. The major benefit of linked lists is that you do not specify a fixed size for your list. The more elements you add to the chain, the bigger the chain gets.

There is more than one type of a linked list, although for the purpose of this tutorial, we’ll stick to singly linked lists (the simplest one). If for example you want a doubly linked list instead, very few simple modifications will give you what you’re looking for. Many data structures (e.g. Stacks, Queues, Binary Trees) are often implemented using the concept of linked lists.

via Linked Lists Tutorial, Examples, and Java code.