Question: For this assignment, you will be completing several methods in a class named LinkedList java will fill in the implementation of the following methods using
For this assignment, you will be completing several methods in a class named LinkedList java will fill in the implementation of the following methods using Nodes (you may use as a reference the LinkedList exercise we completed in class using java or C++): file. You getFirst0 addFirst(item) contains( item) set( int n, item) removeNthNode( int n) addNode(int n, item) removelast0 getL ast0) It is your task to implement each of the missing methods. The main) method in the LinkedL.ist java file instantiates a linked list that can hold Strings, but your code should work with any objects stored within the list
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
