#45 ATM Implementation
Write an ATM class:
/*
ATM.
Initialized with a set of banknotes and can dispense banknotes for a requested amount,
or return a rejection.
Dispensed banknotes are deducted from the ATM balance.
Allowed denominations: ₽50, ₽100, ₽500, ₽1000, ₽5000.
Other currencies and denominations should be easy for developers to add in the future.
Multithreaded scenarios may be added later, such as reservation.
*/
public class ATM {
...
}
Question review
Sign in to start the dialogue
The mentor keeps the context of the current question and your previous messages.
Sign in
Available with Premium
This is just one of the solutions available with Premium. And more:
- 250+ advanced lectures
- 1300+ practice exercises
- 500+ solutions to problems from real interviews
- Personalized Java Hub certificates
- Expanded access to the AI mentor