How nickeduardos/cadveiculos works
CadVeiculos is a terminal-based vehicle registry. The user selects menu actions in Main, which delegates registration, listing, and plate lookup to Functions; those operations validate and manage Veiculo objects held in an in-memory list. Input handles integer prompts. The README documents year checks, duplicate-plate prevention, and data loss at exit; excerpts show the operation and model behavior. The list is owned by Main and passed to Functions. No persistent store or external service is shown.
Main entry points: Main.java Menu controller · Functions.java Vehicle operations · Input.java Integer input · Veiculo.java Vehicle model
Components 6
Terminal interaction
- Menu controller
Main.java - Integer input
Input.java
Vehicle operations
- Vehicle operations
Functions.java - Vehicle model
Veiculo.java
In-memory state
- Vehicle list
Main.java
Other components
- User
Connections 8
- User → Menu controller: chooses action
README.md - Menu controller → User: shows menu
Main.java - Menu controller → Integer input: reads option
Main.java - Menu controller → Vehicle operations: dispatches action
Main.java - Menu controller → Vehicle list: creates list
Main.java - Vehicle operations → Vehicle list: reads and updates
Functions.java - Vehicle operations → Vehicle model: creates and reads
Functions.java - Vehicle operations → Integer input: reads year
Functions.java