HF RL Explorer

savings accounts: add validation

savings accounts: add validation: a task in smol-software-harbor (Harbor dataset). Account.deposit in src/Account.java accepts zero and negative amounts. Make it throw IllegalArgumentException with the message deposit must be positive when cents <= 0 , leaving the balance and the log unchanged…

The task

`Account.deposit` in `src/Account.java` accepts zero and negative amounts. Make it throw `IllegalArgumentException` with the message `deposit must be positive` when `cents <= 0`, leaving the balance and the log unchanged. Build and test with `rm -rf build && javac -d build src/*.java test/*.java && java -ea -cp build…

Part of efederici/smol-software-harbor.