Finance Tracker
A simple command-line Java application for tracking personal income and expenses.
Author: Sparsh Kumar Suman
Registration No: 24BAI10205
- Add income and expense transactions
- View current balance (income minus expenses)
- View transaction history
- Persistent storage using text files
- Input validation for user entries
- Java Development Kit (JDK) 8 or higher
Compile all Java files from the project directory:
javac FileHandler.java FinanceTracker.java Main.java Transaction.javaRun the compiled application:
java -cp . Main- Add Transaction - Record a new income or expense entry
- View Balance - Display the current balance (total income - total expenses)
- View History - List all recorded transactions
- Exit - Close the application
Transaction data is stored in finance_data.txt in CSV format. The file is automatically loaded on startup and can be saved manually.
Finance Tracker/
├── Main.java # Entry point and user interface
├── FinanceTracker.java # Core business logic
├── Transaction.java # Transaction data model
├── FileHandler.java # File I/O operations
└── finance_data.txt # Data storage (created on first save)
This project is licensed under the MIT License. See the LICENSE file for details.