Skip to content

Vehicle Rental System using Java | JDBC, BST, Queue, MySQL || A console-based Vehicle Rental System built in Java, using core data structures like Binary Search Tree and Queue, with JDBC integration for database operations. Includes user registration, vehicle display sorted by rent, and rental request queue handling.

Notifications You must be signed in to change notification settings

romilmonpara/Vehicle-Rental-System_Java_JDBC_MySql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸš— Vehicle Rental System using Java & MySQL

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.


✨ Overview

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.


πŸ”§ Core Features

  • πŸ§β€β™‚οΈ 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)

πŸ—ƒοΈ Tech Stack

Language Java (JDK 17+)
Backend MySQL
Connector JDBC
UI Type Console (CLI)
Structures Queue, BST

πŸ“ Folder Structure

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

πŸš€ Getting Started

  1. πŸ“₯ Clone the repository:
git clone https://github.com/romilmonpara/Vehicle-Rental-System_Java_JDBC_MySql.git
  1. πŸ›  Import into any Java IDE (VSCode, IntelliJ, Eclipse)

  2. 🧩 Configure MySQL Database

    • Import the SQL schema (see below)
  3. ▢️ Run App.java and start using


πŸ“₯ For Database & Resources

  • πŸ” Database .sql file
  • πŸ“Š Project Presentation .ppt
  • πŸ—‚οΈ Full working project zip (compiled + resources)

πŸ“© Please contact the developer directly.


πŸ‘¨β€πŸ’» Author

πŸš€ Romil Monpara
πŸŽ“ B.Tech IT, LJIET Ahmedabad
🌐 GitHub Profile »


πŸ“„ License

This project is licensed under the MIT License


⭐ Star this repo if you like it!

About

Vehicle Rental System using Java | JDBC, BST, Queue, MySQL || A console-based Vehicle Rental System built in Java, using core data structures like Binary Search Tree and Queue, with JDBC integration for database operations. Includes user registration, vehicle display sorted by rent, and rental request queue handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages