A simple finance tracker application written in Java that allows users to manage financial categories, track transactions, and undo recent transactions. The application provides a menu-driven interface for ease of use.
- Add and manage financial categories.
- Add transactions to specific categories.
- View transactions sorted by date.
- Undo the last 10 transactions.
- Basic input validation and menu-driven interface.
Category.java- Represents a financial category.Transaction.java- Represents an individual financial transaction.FinancialActivityManager.java- Manages financial categories and transactions.Driver.java- Main entry point that runs the menu-based application.- Tests (
testsfolder) - Contains JUnit tests for core functionality.
- Ensure you have Java 17+ installed.
- Clone this repository or download the files:
git clone https://github.com/your-repo/finance-tracker.git cd finance-tracker - Compile the project
javac -d bin src/main/*.java - Run the application
java -cp bin main.Driver
- Run the application and select an option from the menu.
- Add categories before adding transactions.
- Use Undo to remove the last recorded transaction.
- View all transactions sorted by date.
You need JUnit 5 to run the tests. Download the latest version from:
- JUnit Platform Standalone JAR
- Place the downloaded
junit-platform-console-standalone-x.x.x.jarin the project root.
The project includes JUnit 5 tests for core functionality.
- Ensure you have JUnit 5 installed.
- Compile the test files:
javac -cp ".;bin;junit-platform-console-standalone-x.x.x.jar" -d bin src/tests/*.java
- Run the tests
java -jar junit-platform-console-standalone-x.x.x.jar --class-path bin --scan-class-path
This project is provided as-is, without warranty or guarantee. You are free to modify or extend it for your needs.
Enjoy using the Financial Activity Manager!