Question: Write code that will print the contents of a linked list of LinkedEmployee objects. The LinkedEmployee class has the usual getPtr() and setPtr() methods and
Write code that will print the contents of a linked list of LinkedEmployee objects. The LinkedEmployee class has the usual getPtr() and setPtr() methods and a .toString() method. The address of the first item in the list is stored in head, a reference variable for a LinkedEmployee object. Be sure that your code does not corrupt the list or lose access to it.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
