This is a simple banking system implemented in Java. It provides a basic command-line interface to interact with a bank account, allowing users to deposit money, withdraw money, and check their account balance.
- Deposit Funds: Add money to the account.
- Withdraw Funds: Remove money from the account, subject to available balance.
- Check Balance: View the current account balance.
To run this banking system, you need to have Java installed on your machine. Follow these instructions to get started:
- Java Development Kit (JDK) installed.
-
Clone the Repository (if using version control, otherwise skip this step):
git clone https://github.com/GAURITYAGI1/Basic-Banking-System.git cd Basic-Banking-System
-
Compile the Code: Save the provided Java code into a file named
bankingSystem.java
. Open your terminal and navigate to the directory containing this file. Compile it using:javac bankingSystem.java
-
Run the Program: After compiling, run the program using:
java bankingSystem
When you run the program, you will be presented with a command-line menu with the following options:
- Deposit: Enter the amount to deposit into the account.
- Withdraw: Enter the amount to withdraw from the account.
- Check Balance: View the current balance of the account.
- Exit: Close the program.
Banking System Menu:
1. Deposit
2. Withdraw
3. Check Balance
4. Exit
Choose an option: 1
Enter amount to deposit: 500
Deposited: $500.0
- BankAccount Class: Represents a bank account with methods to deposit, withdraw, and check the balance.
- SimpleBankingSystem Class: Contains the main method which provides a simple command-line interface for interacting with the
BankAccount
.
- This is a basic implementation and does not include advanced features such as multiple accounts, persistent storage, or transaction history.
- For a production-level application, consider implementing additional features, such as input validation, error handling, and a more robust user interface.
This project is licensed under the MIT License - see the LICENSE file for details.
If you have suggestions or improvements, feel free to submit a pull request or open an issue on the repository.
Create with🤍💖!!