Question: 3 - ( a ) Add the following methods to the SLL class: table [ [ public void clear ( ) , Empties the

3-(a) Add the following methods to the SLL class:
\table[[public void clear(),Empties the list],[public T getFirst(),Returns the info in the first node],[public T getLast(),Returns the info in the last node],[public int length(),Returns the number of elements in the list.],[public String toString(),Returns all the nodes as a string separated by space]]
(b) Update your TestStudentSLL class by adding options that test the additional methods above.
Note: to test the toString method, just print the list object instead of calling the printAll method.
3 - ( a ) Add the following methods to the SLL

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 Finance Questions!