Question: How to implement these methods in java using the class, explain the process all the way through. public class LinkedList { private Node head; public

How to implement these methods in java using the class, explain the process all the way through.

 public class LinkedList { private Node head; public class Node { private Node next; private String name; private int ID; constructor public Node(String name, int ID) { this.next = null; this.name = name; this.ID = ID; } new Linked list constructor
public newLL() { Node newNode = new Node(null, -2); head = newNode; }
 create a new Node, insert it where index is located public void insertIn(String name, int ID, int index) { }

 Remove node where index is located public void Remove(int index) { } Remove node at index that is identified by name public void Remove(String name) { }
 Return the Linked List starting from the middle node public Node midNode() { return null; }

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!