This is a simple ATM machine simulation project written in Java as part of my Java learning journey. The project demonstrates fundamental OOP concepts and allows users to perform banking operations like checking balance, withdrawing, and depositing money through a command-line interface.
- β PIN authentication system
- π° Check account balance
- πΈ Withdraw amount (with insufficient balance check)
- π΅ Deposit amount
- π Menu-driven interface with recursive navigation
- π§ Basic error handling for invalid input
- Java class & object creation
- Scanner class for input
- Conditional logic using
if-else
- Loops and method calls
- Data encapsulation and class methods
- Simple command-line menu system
-
Compile the code:
javac Main.java
-
Run the program:
java Main
-
Default PIN is 5678. Use it to access the menu.
ATM-Machine :
- Main.java # Main class to run the ATM app
- ATM.java # ATM logic: check balance, deposit, withdraw, etc.
Enter Your PIN: 5678 Enter your choice:
- Check Balance
- Withdraw Amount
- Deposit Amount
- Exit
- Add real user authentication.
- Store data persistently (e.g., using files or database).
- Improve input validation.
- Use GUI with JavaFX or Swing
This project was created while learning Java fundamentals, OOP principles, and CLI-based application development.
π©βπ» Author Neha Bharti