How thing-t6/cliexpensetracker works
This is a small Java CLI expense tracker. The user enters income and dated expenses; Main collects and totals them, computes the remaining balance through Income, displays the results, and optionally appends a report to a local file or reads it back. The object model is limited to Income and Expenses. Relationships shown are supported by the sampled source; the README also documents input validation and LocalDate-based dates.
Main entry points: Main.java CLI orchestration · Income.java Income balance · Expenses.java Expense records
Components 5
CLI workflow
- CLI orchestration
src/Main.java
Transaction model
- Income balance
src/Income.java - Expense records
src/Expenses.java
Local reports
- Local report file
src/Main.java
Other components
- User
Connections 6
- User → CLI orchestration: enters data
src/Main.java - CLI orchestration → Income balance: sets income
src/Main.java - CLI orchestration → Expense records: creates records
src/Main.java - CLI orchestration → Income balance: updates balance
src/Main.java - CLI orchestration → Local report file: appends report
src/Main.java - CLI orchestration → Local report file: reads report
src/Main.java