To write your own link-based implementation of the List ADT and test it extensively.
This assignment is to be done individually.
Write a class, LinkedListImplementation
, that implements the List ADT using a linked structure, as discussed in class. Follow the same basic steps as in Part 3 of the last assignment:
Node
, in order to build your structure. Node
doesn't really need anything other than two public data members and maybe a constructor.private class
inside your implementation class. This is what makes it safe to have the data members be public; they're public only to the LinkedListImplementation
class, which you, the implementor, are in charge of keeping organized and consistent.Submit your LinkedListImplementation.java file on Moodle.
Start early, ask lots of questions, and have fun!