A fully functional console-based vehicle rental system built in Java, featuring admin and user panels, queue management, BST-based sorting, payment integration, and JDBC connectivity.
This project simulates a real-world vehicle rental system with a strong emphasis on object-oriented design, custom data structures, and clean CLI interactions. It provides separate workflows for Admin and Users, handles vehicle management, payments, and maintains rental records using a MySQL database.
- π§ββοΈ User Registration with input validation
- π§βπΌ Admin & User Panel with role-specific functionality
- π Add / Edit / Delete / View Vehicles (Admin)
- π View Vehicles Sorted by Rent using Binary Search Tree (BST)
- π§Ύ Queue Management for Vehicle Booking (FIFO)
- π³ Payment via Cash and Credit Card (CVV + Expiry)
- π Rent & Return a Car functionality
- ποΈ JDBC-based MySQL Database Integration
- ποΈ ANSI Color-Coded CLI (Optional Add-On Section)
| Language | Java (JDK 17+) |
|---|---|
| Backend | MySQL |
| Connector | JDBC |
| UI Type | Console (CLI) |
| Structures | Queue, BST |
VehicleRentalSystem/
βββ src/ # Core source files
β βββ App.java # Entry point with role routing
β βββ Admin.java # Admin panel logic
β βββ BinarySearchTree.java # Vehicle BST structure
β βββ ...
βββ lib/ # External dependencies
β βββ mysql-connector-j-8.3.0.jar
βββ bin/ # Compiled class files (ignored in Git)
βββ README.md # Project overview
βββ .gitignore # File exclusions
- π₯ Clone the repository:
git clone https://github.com/romilmonpara/Vehicle-Rental-System_Java_JDBC_MySql.git-
π Import into any Java IDE (VSCode, IntelliJ, Eclipse)
-
π§© Configure MySQL Database
- Import the SQL schema (see below)
-
βΆοΈ RunApp.javaand start using
- π Database
.sqlfile - π Project Presentation
.ppt - ποΈ Full working project zip (compiled + resources)
π© Please contact the developer directly.
π Romil Monpara
π B.Tech IT, LJIET Ahmedabad
π GitHub Profile Β»
This project is licensed under the MIT License
β Star this repo if you like it!