Question: Write the inputOrders ( ) method in the Deliveries class. Within inputOrders ( ) , use scnr to read pairs of inputs, string currFood and
Write the inputOrders method in the Deliveries class. Within inputOrders use scnr to read pairs of inputs, string currFood and integer currQuantity, until "done" is read from input. Create each Order object with currFood and currQuantity as arguments and append each object to ArrayList orderList.
Ex: If the input is duck quail pear ginger done, then the output is:
Order: duck, Quantity: Order: quail, Quantity: Order: pear, Quantity: Order: ginger, Quantity:
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
