This program realizes test task (Sry, I've lost the link). I create a package with all my auxiliary classes. Class List realizes ArrayList collection with one owner, ProductList and UserList extend this class and override some methods, to create different lists. Product and User - it's program objects. Other classes used it. Class MyException realizes exception, when user haven't enough money to bough some product. Class SystemMenu - provides services with other objects, all logic implement in this class. Class Program - consist method main with some statements:
- Create object SystemMenu with all products and users, add to list it.
- Example with buying by User(to check correct execution).
- Launching menu with all variants to work with these objects.
Run the program from this class