5AbhishekSaxena / 5AbhishekSaxena/atm-machine

Add method to deposit money.

Open Beginner friendly
#2 0 comments 0 reactions 0 assignees View on GitHub
enhancement good first issue
Dominant language
Java
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Steps
- Check `amount > 0` else throw `ATMException` with an appropriate message.
- Increase the balance.

Contributor guide

No contributing guide indexed for this repository

Research direction

Look for the ATMException class and the balance field in the codebase. The deposit method likely belongs to an account or ATM class. Implement the validation and balance update, then run any existing tests to verify the deposit works correctly and throws the exception for invalid amounts.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
75/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.