This simple code can be used on all vending machines. Easy Java: Vending Machine Program - YouTube