An ATM has to dispense the amount desired. If the ATM can't give all the money, the remainder is put to the trash! Implements the pattern Chain of Responsibility to solve this problem.
The ATM is separated into different internal modules in the following order : a 50€ dispenser, a 20€ dispenser, a 3€ dispenser and a trash.
Solve the tests under the package test using System.out.println()
.
Solution is under the package solution. Classes under this package are prefixed with the symbol ɵ to disable IDE autocompletion.