This applet runs a multi-threaded shipping and receiving simulation for a small inventory of items. The initial inventory is zero. Use the buttons to start and stop threads that will automatically receive (re-stock) and ship items at random intervals.
The current inventory value is refreshed every second and the message log displays receiving and shipping activity.
To run the program, you must be familiar with how to run Java sample code using a "test" project. If you already have a test project, copy and paste the source statements of this Sample07.txt file into the App.java source file of your test project. Then, re-build the test project and launch the App.html file using an applet viewer or a web browser.