ECET370 Week 3 Lab 3 Linked Lists
Download
General Instructions
Exercises 1, 2, and 3 use the programs in DocSharing labeled “User-defined linked list."
Exercise 4 uses the programs in DocSharing labeled “Using java.util.LinkedList."
Exercise 1: Review of...
More
ECET370 Week 3 Lab 3 Linked Lists
Download
General Instructions
Exercises 1, 2, and 3 use the programs in DocSharing labeled “User-defined linked list."
Exercise 4 uses the programs in DocSharing labeled “Using java.util.LinkedList."
Exercise 1: Review of Linked Lists Create a project using the classes in the DocSharing area labeled “User-defined
linked list." Compile it, run it, and review the code that is given carefully. This code tests the LinkedList class provided in
the lecture. Extend the class Main to test the functions isEmpty, search and remove of the class LinkedList.
Exercise 2: A User-Defined Linked List Modify the class LinkedList given in the lecture by adding to it the functions listed
below for Exercise 2. In each case, the appropriate error message should be generated if an invalid condition occurs. a.
toString(): modify the display function to overload the toString function of the Object class. b. int length(): create this
function to determine the number of items in
Less