Java. Refer to screenshot. There is starter code for this question.
public class LinkedList {Node head;Node tail;
protected class Node{String data;Node next;}
public String removeFirst(){//Complete the implementation of removeFirst}
public String toString(){
String result = "";
Node n = head;while(n != null){result += n.data + " -> ";n = n.next;}
return result;}
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here