This project simulates a simple online banking service where users can create an account, deposit and withdraw money, check their balance, and view transactions.
The project is divided into four main classes:
Main: The entry point of the application.Account: Represents a user's bank account.Transaction: Represents a transaction (deposit or withdrawal).Profile: Represents a user's profile.
- Ensure you have Java installed on your system.
- Download the
.javafiles mentioned below. - Compile the Java files using the command
javac Main.java. - Run the application with the command
java Main.
- The program starts with a greeting and prompts the user to create an account.
- It continually displays a menu for various banking actions such as checking the balance, depositing money, withdrawing money, searching and sorting transactions, changing the password, and logging out.
- The createAccount method initializes an Account object with a username and a password, setting an initial balance of $1000.
- Holds user profile, account balance, and transaction records.
- Allows depositing and withdrawing money, updating the balance accordingly, and adding transactions to a list.
- Represents a banking transaction with a date, amount, and type (Deposit or Withdrawal).
- Holds user profile information: username and password.
- Account creation with initial balance
- Deposit and withdrawal operations
- Transaction history with search and sort functionalities
- Password change feature
- The application does not connect to a real bank or external database.
- Password validation is basic and might not meet real-world security standards.
- Implementing a graphical user interface (GUI).
- Adding multi-user support with login functionality.