This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Hi all, I was hoping some of you may be able to help me.
I have been tasked with implementing a linked list data structure that does not use any imports, other than a provided interface. This implementation must store items in the order they are added.
I thought that I should use an inner class to act as the Node class for this linked list, as it has to remain as generic and abstract as possible and should work for any type of Object you wish to add.
I am having problems testing my code by creating an instance of the BasicLinkedList class and adding some Integer objects, it fails on the 2nd line of the add method...