A simple console-based Banking System Application developed in Java
using Object-Oriented Programming (OOP) concepts.
The application allows users to create bank accounts and perform basic
banking operations such as deposit, withdrawal, and account search.
To design a menu-driven banking system that demonstrates:
- Classes and Objects
- Constructors
- Arrays of Objects
- Methods
- User input using Scanner class
- Create multiple customer accounts
- Display all account details
- Search account by account number
- Deposit money into an account
- Withdraw money from an account
- Balance validation during withdrawal
- Menu-driven program using loops and switch-case
- Java
- Scanner class for user input
- OOP concepts (Class, Object, Constructor, Methods)
BankingApp.java β βββ class BankDetails β βββ Account details (accno, name, acc_type, balance) β βββ Constructor for account creation β βββ showAccount() β display account details β βββ deposit() β deposit amount β βββ withdrawal() β withdraw amount β βββ search() β search account by account number β βββ class BankingApp βββ main() β menu-driven execution
- User enters the number of customers.
- Account details are taken using a constructor.
- A menu is displayed repeatedly until the user exits.
- User can:
- View all account details
- Search for an account
- Deposit money
- Withdraw money
- Exit the application
- Deposit: Adds amount to the current balance
- Withdrawal: Checks sufficient balance before withdrawing
- Search: Displays account details if account number matches
-
Save the code as
BankingApp.java -
Compile the program: javac BankingApp.java
-
Run the program: java BankingApp
This Banking System Application is a beginner-friendly Java project that demonstrates core OOP principles and user interaction through a console-based menu. It is suitable for academic assignments, practical exams, and viva preparation.
π Developed using Java OOP concepts