Linked List in Java 2

Linked List in Java 2In my previous Linked List in Java tutorial, I showed you how to create Linked Lists and how to manipulate them.

In this tutorial, I will cover Double Ended Linked Lists which have a reference to the first and last link. I cover how a Doubly Linked List allows you to go backwards and forwards in a list. Then we take a look at Iterators.

Numerous other topics are covered and the code and video below will help you learn.

If you like videos like this, it helps to tell Google+ [googleplusone]

Code From the Video

4 thoughts on “Linked List in Java 2”

  1. I think that the insertAfterKey method needs to check the double link is not empty.

    if (!isEmpty()) {}
    else {
    lastLink = theNewLink;
    firstLink = theNewLink;
    }

  2. In the NeighborIterator class, ‘theNeighbors’and ‘currentNeighbor’ may be null and lead to NullPointerException in the constructor, hasNext(), remove()

Leave a Reply

Your email address will not be published. Required fields are marked *