write my assignment 20016
As the description above states. I’m working on an assignment in Java for a generic singly linked list.
I have most of the other methods for this assignment figured out, but I’m currently struggling with the three methods listed above (Shift, Erase, and InsertList).
I have no idea how to approach it so any help would be greatly appreciated.
If there’s anything that may be required of me in order for you to help me, please let me know.
import java.util.ArrayList;import java.util.List;import java.util.NoSuchElementException;public class GenLinkedList<T> {private Node head;private Node tail;int size = 0;private static…