A simple Java-based Car Rental System that allows users to rent and return cars. This project demonstrates the basic functionalities of a car rental service, including adding cars, renting cars, returning cars, and managing customer and rental information.
- Car Management: Add and manage cars available for rent.
- Customer Management: Add and manage customer information.
- Rental Management: Rent out cars to customers and manage rental records.
- Return Management: Return rented cars and update their availability status.
- Java Development Kit (JDK): Ensure you have JDK installed on your machine. You can download it from Oracle's official website.
-
Clone the repository (if using version control):
git clone https://github.com/azizbelkhouja/car-rental-system.git
-
Navigate to the project directory:
cd car-rental-system
-
Compile the Java program:
javac Main.java
-
Run the compiled program:
java Main
Once the program is running, you will be presented with a menu:
- 1. Rent a Car: Allows you to rent an available car by providing your name and the number of days for rental.
- 2. Return a Car: Allows you to return a car by providing the car ID.
- 3. Exit: Exit the application.