Question: In the class SinglyLinkedList, add a method shiftLeft(), that shifts the all the elements to the left, and puts the first element last. Test your
In the class SinglyLinkedList, add a method shiftLeft(), that shifts the all the elements to the left, and puts the first element last. Test your method in the main with a list of letters. You will lose marks for not testing, and also if the code is not running. E.g.: List before calling the method: A B C D List after calling the method: B C D A
Step by Step Solution
3.42 Rating (161 Votes )
There are 3 Steps involved in it
To solve this problem we need to implement a shiftLeft method for a SinglyLinkedList class This method will move all elements in the list one position ... View full answer
Get step-by-step solutions from verified subject matter experts
