Question: Part 3 : Finish the PaintJobSystem.java file Complete the viewNextJob ( ) method. This takes on the database object and should use the queue's peek

Part 3: Finish the PaintJobSystem.java file
Complete the viewNextJob() method.
This takes on the database object and should use the queue's peek() method to see what the top job is and print it out. BUT it shouldn't print 'null' if there are no jobs in the queue. So you will need to check if it is empty or not. If it is empty you should print a message stating that.
*** Next Job ***
Invoice ID: 1589
Invoice Date: 01-25-2023
Customer Name: Bruce Banner
Address: 8905th Ave, Manhattan, New York 10451
Paint: Flat Dutch Boy
Color: Calming Gray
Total Cost: $1,026.75
or if no job
*** Next Job ***
*No Jobs in Queue*
Note: The job in this example may not be your job YET, as you haven't sorted the data.

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