Track your income & expenses with a clean Java + JDBC console app!
A minimalist Budget Tracker application built with pure Java and JDBC.
No frameworks, just clean and simple code to help you practice Java, database connectivity, and structured programming.
π‘ Perfect for beginners who want to understand Java-MySQL integration from scratch.
β
Add & View Expenses
β
Add & View Income
β
Generate Budget Reports (Income, Expenses, Balance)
β
Console-based user interface
β
Uses MySQL + JDBC (no frameworks!)
| Tech | Description |
|---|---|
| π§ Java | Core logic and object handling |
| π’ MySQL | Database storage for income/expenses |
| π JDBC | Java Database Connectivity |
| π» Console | Interactive CLI menu |
CREATE TABLE income (
id INT AUTO_INCREMENT PRIMARY KEY,
source VARCHAR(100),
amount DOUBLE,
date DATE
);
CREATE TABLE expenses (
id INT AUTO_INCREMENT PRIMARY KEY,
category VARCHAR(100),
amount DOUBLE,
date DATE
);===== Budget Tracker =====
- Add Expense
- View Expenses
- Add Income
- View Income
- Generate Report
- Exit
Enter your choice: 5
=== Budget Report ===
Total Income: $5000.00
Total Expenses: $1500.00
Net Balance: $3500.00
- Clone this repo:
git clone https://github.com/janavigopu/BudgetTracker.git - Open in Eclipse or your favorite IDE
- Update DB credentials in Database.java:
private static final String USER = "your_mysql_user";
private static final String PASSWORD = "your_mysql_password";
- Create DB tables using the SQL provided above or in setup.sql.
- Run Main.java and start tracking!
ποΈ Delete & Update income/expenses
π Monthly filters for reports
π Export to CSV for offline tracking
π₯οΈ GUI version using JavaFX or Swing
Found a bug? Got an idea? Feel free to fork and open a PR!
Letβs build better budgeting together πͺ
Made with β by Janavi G
π LinkedIn
π GitHub
π§ Mail
MIT License Β© 2025 β Free to use & modify!