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 : 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:
Invoice Date:
Customer Name: Bruce Banner
Address: th Ave, Manhattan, New York
Paint: Flat Dutch Boy
Color: Calming Gray
Total Cost: $
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
