A simple ATM Interface project in Java that simulates basic banking operations such as deposit, withdrawal, balance checking and account interaction through a console-based menu system.
This project demonstrates core Object-Oriented Programming concepts in Java including classes, methods, user input, and control flow.
This ATM Interface project allows a user to:
- Create a bank account with initial balance
- Deposit money
- Withdraw money
- Display current balance
- Exit the system
This is a console-based banking simulation built using Java and is suitable for beginners learning Java fundamentals. :contentReference[oaicite:0]{index=0}
ATM-interface/ ├── BankAccount.java ├── (Other Java files if any) └── README.md
💡 BankAccount.java contains all the logic for handling deposit, withdrawal, and balance functions.
- 🔹 Java (Core)
- 🔹 Scanner (for user input)
- 🔹 Object-Oriented Programming (OOP)
✔ Add deposit amount
✔ Withdraw amount with balance validation
✔ Check balance
✔ Simple console interaction
✔ Demonstrates real-world banking logic :contentReference[oaicite:1]{index=1}
- Program displays a simple menu to the user
- User selects one of the banking operations
- Input is taken via the Scanner class
- Balance is updated and displayed accordingly
- Loop continues until the user exits the interface
git clone https://github.com/shreyadesai20042009/ATM-interface.git
cd ATM-interface
2️⃣ Compile the Java file
javac BankAccount.java
3️⃣ Run the program
java BankAccount
📊 Usage Example
Welcome to the ATM Interface!
1. Check Balance
2. Deposit
3. Withdraw
4. Exit
Enter your choice: 2
Enter amount to deposit: 500
Deposit successful!
Updated Balance: 1500.00
Enter your choice: 3
Enter amount to withdraw: 200
Withdrawal successful!
Updated Balance: 1300.00