Closed kykungz closed 6 years ago
Never ending recursive call to Valuable[] withdraw(Valuable amount).
Valuable[] withdraw(Valuable amount)
Valuable[] withdraw(double amount) could just call Valuable[] withdraw(Valuable amount) and let it handle the logic.
Valuable[] withdraw(double amount)
Remember:
Withdraw the amount, using only items that have the same currency as the parameter (amount). amount must not be null and amount.getValue() > 0.
Never ending recursive call to
Valuable[] withdraw(Valuable amount)
.Valuable[] withdraw(double amount)
could just callValuable[] withdraw(Valuable amount)
and let it handle the logic.Remember: