Partially completed, need help using Runnable andExecutionService
Prompt:
-
Create an “Order” class to represent an incoming order with thefollowing fields
-
Customer Name
-
Customer Address
-
Pounds of honey
-
-
Create a list to hold incoming orders and populate it withat least 6 orders
-
Create an ExecutorService instance to managethreads
-
Write a Runnable class to process each order by callingthe API to generate a shipping label
-
“Print” each label by printing it to theconsole
-
Although ShippingLabel does have a toString() method, itis not very readable. Print the shipping label in a moreuser-friendly way.
-
Watch out for concurrency problems!
-
-
Keep track of the total cost of allshipments
-
There are many ways to do
ORPayPal Gateway not configured
ORPayPal Gateway not configured
-
-