Homework Assignment 2
Due : Thursday, September 13th, before midnight.
Download the LinkedList class from the code examples directory, and
modify it as follows :
-
Modify the contains() method to use recursion instead of
iteration.
-
Modify the getNextElement() method to use a reference to the current element to
keep track of the current element in the iteration, rather than
relying on the get() method.
All code should be submitted via the online submit_cse116
command. You will only need to submit the one file, LinkedList.java.
Last modified: Fri Oct 07 14:55:01 Eastern Daylight Time 2005