Question: Using the program you already created for the class, modify it to no longer use ArrayList but instead use a LinkedList. Modify the method

Using the program you already created for the class, modify it to

Using the program you already created for the class, modify it to no longer use ArrayList but instead use a LinkedList. Modify the method displayAllPay to use poll() and IsEmpty(). Your code should loop through the list of employees and call displayPay() on each object. LinkedList poll() can be found in your book in chapter 9.5.1. IsEmpty() can be found here https://www.javacodeexamples.com/check-if-linkedlist-is-empty-in-java-example/2374 Create a custom exception and have the displayAllPay throw it. The exception should be thrown if the list size is 0. When you catch the exception just do a System.out.println(e); Look at the solution in LinkedListMethods.zip

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