This is my first project using Java. It is a comprehensive Hotel Reservation System built with Java, JDBC, IntelliJ IDEA, and MySQL.
- Reserve a Room: Book rooms with necessary details.
- View Reservations: Retrieve and display all current reservations.
- Get Room Number: Obtain the room number for a specific reservation.
- Update Reservations: Modify existing reservations to reflect changes.
- Delete Reservations: Remove reservations as needed.
- Clone the repository:
git clone https://github.com/your-username/HotelReservationSystem.git
- Navigate to the project directory:
cd HotelReservation
- Import the project into IntelliJ IDEA.
- Update the database connection details in HotelReservationSystem.java:
private static final String jdbcUrl = "jdbc:mysql://localhost:3306/your-database"; private static final String username = "your-username"; private static final String password = "your-password";
Replace your-password with your MySQL database password.
-
Connect MySQL Connector/J:
- Download MySQL Connector/J from MySQL official website
- Add the Connector/J JAR file to your IntelliJ IDEA project
- Right-click on your project in IntelliJ IDEA.
- Select "Open Module Settings".
- Go to "Libraries" and click on the "+" sign to add the Connector/J JAR file.
-
Run the project from IntelliJ IDEA.
- Make sure to replace
your-username
,your-password
, andhotel_db
with your actual MySQL credentials and database name. - Detailed instructions are provided for cloning the repository, setting up the project in IntelliJ IDEA, updating database connection details, and connecting MySQL Connector/J.
This README.md
file will guide users on how to set up and run your Hotel Reservation System project effectively. Adjust the instructions as per your specific project requirements and preferences.