This program is a command-line based utility for creating shoppers and products (presumably for a store), handling shoppers purchasing products, and displaying information about shoppers and products. It is designed in order to give you an opportunity to:

The whole program will consist of four classes:

The ONLY .java file in which you will have to write code is MethodHolder.java - though you need to at least understand how the Shopper and Product classes work. (Hint: If you find yourself thinking you need to change/add code in any place other than where I've told you to do so, that's a good sign you need to let me or someone know what obstacles you are running up against.) Notice the following two lines near the start of the code:
    private static int nextShopperID = 100;
    private static int nextProductID = 100;
These variables hold the ID numbers to be given to the next shopper created and the next product created, respectively. Because these variables have been declared outside of the methods, they will be available to code inside the methods. Because both shopper IDs and product IDs start at 100, each of the variables is initialized to that. Remember this for later, when it appears in one of the code requirements.

You will write code for the following four methods:

Click here for a live demonstration of a very similar program in action. The substantive material is different but the overall pattern of interaction and behavior is very close to this one.