This is a Java console application for managing vehicle rentals. It allows users to register, rent vehicles (cars, bikes, trucks), and manage their rentals.
- User registration and login
- Vehicle rental with date selection
- Rental management (view, complete, cancel)
- Payment processing
- Vehicle registration
- Cars - with details like seats, transmission type, AC availability
- Bikes - with details like engine capacity and bike type
- Trucks - with details like load capacity and refrigeration
- Make sure you have Java JDK installed (version 8 or above)
- Install MySQL Connector/J jar file and place inside lib
- Install Gson jar file and place inside lib
- Run the shell script located inside of src:
sh run.sh
- Download the RentalDatabase.sql code from the /database folder
- Change the third argument of the DATABASE field in App.java to your localhost server password
- Login or register a new account
- Rent available vehicles
- Enter details for desired vehicle
- Enter rental dates and registration number
- Pay for rented vehicles
- If admin, add vehicles
- Java JDK 8 or above
- Console/Terminal for running the application
- MySQL
User.java- User class for managing user accountsInsurance.java- Represents the user's insuranceVehicle.java- Base class for all vehiclesCar.java,Bike.java,Truck.java- Vehicle type classesFuelType.java,TransmissionType.java- Basic vehicle detail enumeratorsRental.java- Rental page to access rental functionsPayment.java- Payment processingCart.java- View of the cartVehicleHandler.java- Handles vehicle inventoryLogin.java- Handles account login and registrationWindow.java- Main view of the rental systemApp.java- Main application entry point