Assignment Due Wednesday April 24 Modify Linkedlist Class Created Code Included Adding Fol Q37213166

Assignment Due Wednesday April 24

Modify the LinkedList class we created (Code included) by addingthe following methods:

1. find () – will accept a String for the item to find, andreturn the index of the item or -1 if the item is not found. Notethat our LinkedLIst is zero-based.

A sample calling statement might be int loc =myList.find(“Angela”);

2. remove() – will accept a String for the item to remove andremove the item from the list. The method should return true if theitem was removed, false if the item was not removed i.e. it was notin the list.

A sample calling statement might be boolean

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.