Question: Problem 2. (60 Points) Implement a nicer linked list. You may notice in Problem 1 that it is rather inconvenient to build lists with MyNode.

 Problem 2. (60 Points) Implement a nicer linked list. You may

notice in Problem 1 that it is rather inconvenient to build lists

with MyNode. Implement another generic class MyList, in terms of MyNode, that

Problem 2. (60 Points) Implement a nicer linked list. You may notice in Problem 1 that it is rather inconvenient to build lists with MyNode. Implement another generic class MyList, in terms of MyNode, that has a nicer interface. Class MyList must havea private field MyNode n Task 1. Make MyList iterable by implementing the Iterable interface Task 2. Make MyList clonable by implementing the Cloneable interface and overriding the Object.clone ) method Task 3. Define the two constructors for the MyList class: public MyListO; I/ create an empty list public MyList (Iterable iterable); Task 4. Implement these member methods (with their expected meaning): public MyList, in terms of MyNode, that has a nicer interface. Class MyList must havea private field MyNode n Task 1. Make MyList iterable by implementing the Iterable interface Task 2. Make MyList clonable by implementing the Cloneable interface and overriding the Object.clone ) method Task 3. Define the two constructors for the MyList class: public MyListO; I/ create an empty list public MyList (Iterable iterable); Task 4. Implement these member methods (with their expected meaning): public MyList

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!