Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 899 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 899 Bytes

vending-machine-system-design

About The Project

This project is a demonstration of How do you design a Vending Machine in Java? which is one of the Java interview questions mostly asked at Senior level Java developer Interviews.

In this example we will be using Factory method pattern for creating different types of Vending Machine.
Read more here: https://refactoring.guru/design-patterns/factory-method

Requirements:

  1. Accepts coins of 1,5,10,25 Cents i.e. penny, nickel, dime, and quarter.
  2. Allow user to select products Coke(25), Pepsi(30), Soda(10)
  3. Allow user to take refund by cancelling the request.
  4. Return the selected product and remaining change if any
  5. Allow reset operation for vending machine supplier.

Technologies used:

  • Java
  • Spring Boot
  • Gradle

Contact

Nensi Skenderi - nensiskenderi20@gmail.com