A simple Java-based personal finance tracker to monitor income and expenses. The application provides features to add transactions, view transaction history, calculate total income and expenses, and provide financial insights.
- Add Transaction: You can add income or expense transactions, each transaction impacts the total account balance.
- View Transaction History: Displays a list of all the transactions that have been made.
- Calculate Total Income/Expense: Shows total income and total expenses separately.
- Calculate Saving: Calculates savings by finding the difference between total income and total expenses.
- Financial Insights: Provides simple insights like average monthly expenses.
Transaction
: Represents a transaction with properties such asamount
,date
,type
(income or expense), anddescription
.Account
: Represents an account with properties likebalance
and aList<Transaction>
to store all transactions.
- Java Development Kit (JDK) 8 or newer.
- A Java IDE (like IntelliJ IDEA or Eclipse).
- Clone the repo:
- Open the project in your Java IDE.
- Build and run the
Main
class.
Upon running the application, the user is presented with a menu of operations:
Welcome to Personal Finance Tracker! What would you like to do today?
Add a transaction View transaction history View total income View total expenses View savings View financial insights Exit Please enter a number (1-7): The user can then input a number to select what operation they would like to perform.
- Implement data persistence so that transactions aren't lost when the program ends.
- Develop a graphical user interface for a more user-friendly experience.
- Provide more complex financial insights, perhaps integrating with a financial API to provide investment suggestions.
- Create validators for the inputs
Please feel free to fork this repository and submit pull requests. All contributions are welcome!