Welcome to the Console Banking Application, a simple text-based banking system written in Java. This application allows users to create accounts, deposit and withdraw funds, and check their account balances, all within a console interface.
- Create an account with a unique account number.
- Deposit funds into your account.
- Withdraw funds from your account.
- Check your account balance.
- Handle insufficient funds scenarios during withdrawals.
To run the Console Banking Application, follow these steps:
rom this repository.
-
Open your command prompt or terminal and navigate to the directory where
BankingApplication.java
is located. -
Compile the Java code using the following command:
- javac BankingApplication.java
- java BankingApplication
Once the application is running, you will be presented with a menu:
-
Create an Account: Enter the account holder's name to create a new account. You will receive an account number.
-
Deposit Funds: Enter your account number and the amount you want to deposit.
-
Withdraw Funds: Enter your account number and the amount you want to withdraw. The application will check for sufficient funds.
-
Check Balance: Enter your account number to view your current balance.
-
Exit: Exit the application.
Welcome to the Console Banking Application
-
- Create an Account
-
- Deposit Funds
-
- Withdraw Funds
-
- Check Balance
-
- Exit
- Enter the account holder's name: John Doe
- Account created successfully. Your account number is: ACC1
-
- Create an Account
-
- Deposit Funds
-
- Withdraw Funds
-
- Check Balance
-
- Exit
- Enter your account number: 123450123456
- Enter the amount to deposit: $10000
- Deposit successful. New balance: $100.0
This is a simplified example for educational purposes and lacks advanced features, such as authentication and persistence. In a real-world application, you would use a database for data storage and add security measures. The account data is stored in memory and will be lost when the program is closed.