This is a simple banking system project implemented in Java. It allows users to register, login, open bank accounts, and perform various banking operations such as credit, debit, transfer money, and check balance.
- User registration and login
- Open new bank accounts
- Debit money from accounts
- Credit money to accounts
- Transfer money between accounts
- Check account balance
- Java 8 or higher
- MySQL Database
- IntelliJ IDEA or any other Java IDE
-
Install MySQL and create a database named
banking_system
. -
Create the necessary tables using the following SQL statements:
CREATE TABLE accounts ( account_number BIGINT PRIMARY KEY, fullname VARCHAR(255), email VARCHAR(255) UNIQUE, balance DECIMAL(10, 2), security_pin CHAR(4) ); CREATE TABLE users ( fullname VARCHAR(255), email VARCHAR(255) PRIMARY KEY, password VARCHAR(255) );
- Open the
BankingApp.java
file. - Update the database connection details:
private static final String url = "jdbc:mysql://localhost:3306/banking_system"; private static final String username = "root"; private static final String password = "yourpassword";
Replace yourpassword with your MySQL root password.
- Clone this repository to your local machine.
- Open the project in IntelliJ IDEA or any other Java IDE.
- Ensure the MySQL server is running.
- Run the
BankingApp.java
file.
src
└── Banking_System
├── AccountManager.java
├── Accounts.java
├── BankingApp.java
└── User.java
- Register a new user.
- Login with the registered email and password.
- Open a new bank account if one doesn't already exist.
- Perform various banking operations:
- Debit money
- Credit money
- Transfer money
- Check balance