Question: For JAVA using a linked list. Add element to the end of the list. Not sure what the correct answer is. I've also tried N.next
For JAVA using a linked list. Add element to the end of the list. Not sure what the correct answer is. I've also tried "N.next = last;" but not correct either.

* t *Creates a new last element * @param data the new data to insert * @postcondition a new last element public void addlast (int data) if (length -- 0) first-last -new Node (data); ) else Node Nnew Node (data) [Fill in One Missing Line Here] length++ N.next N
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
