Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started