Question: 1 4 . 1 Applied Lab 3 . 1 : LinkedList Update In this Lab we update our LinkedList for use in the Mutual Fund

14.1 Applied Lab 3.1: LinkedList Update
In this Lab we update our LinkedList for use in the Mutual Fund InvestorTrack App.
Step 1: Copy your LinkedList
Copy your completed LinkedList class from Lab 4 into the LinkedList. java file below.
Step 2: Add and implement the following methods into your LinkedList class:
```
/**
* Returns each element in the LinkedList along with its
* numerical position from 1 to n, followed by a newline.
*/
public String numberedListString(){
return "
";
}
/**
* Searches the LinkedList for a given element's index.
* @param data the data whose index to locate.
* @return the index of the data or -1 if the data is not contained
* in the LinkedList.
*/
public int findIndex(T data){
return -1;
}
/**
* Advances the iterator to location within the LinkedList
* specified by the given index.
```
Follow the guidance given in the block comment for the methods.
Remember that you are not allowed to alter the LinkedList class variables and methods except to add the new methods above.
1 4 . 1 Applied Lab 3 . 1 : LinkedList Update In

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 Programming Questions!