GitHunt
YO

yogeshkumarsaini/Hotel-Reservation-System

Console-based Hotel Reservation System built with Java and OOP concepts. Supports room booking with check-in/check-out dates, billing, admin panel, room search by price, and receipt generation.

๐Ÿจ Hotel Reservation System

A console-based Hotel Reservation System built using Core Java and OOP concepts.
This project simulates real hotel booking operations including room management, customer reservations, billing, and admin controls.


๐Ÿš€ Features

๐Ÿ›๏ธ Room Management

  • Multiple room categories (Single, Double, Suite)
  • Room availability tracking
  • Admin can add new rooms

๐Ÿ“… Booking System

  • Customer check-in and check-out dates
  • Automatic stay duration calculation
  • Date validation:
    • Check-in cannot be in the past
    • Check-out must be after check-in

๐Ÿ’ฐ Billing System

  • Price per night calculation
  • Total bill based on number of days
  • Formatted receipt generation
  • Search available rooms by category
  • Search rooms under a given price

๐Ÿ‘ค Customer Handling

  • Store customer name and phone number
  • Link customer with reservation

๐Ÿ” Admin Panel

  • Secure admin login
  • Add rooms dynamically
  • View all reservations

โš™ System Features

  • Menu-driven console interface
  • OOP-based design
  • Exception handling
  • Real-world hotel workflow simulation

๐Ÿงฑ Technologies Used

  • Java
  • OOP (Encapsulation, Classes, Objects)
  • ArrayList
  • LocalDate API
  • Scanner for user input

๐Ÿ“‚ Project Structure

Hotel Reservation System
โ”‚
โ”œโ”€โ”€ Room.java
โ”œโ”€โ”€ Customer.java
โ”œโ”€โ”€ Reservation.java
โ”œโ”€โ”€ HotelService.java
โ””โ”€โ”€ Main.java

๐Ÿ–ฅ๏ธ How to Run

  1. Open project in any Java IDE (IntelliJ, Eclipse, VS Code)
  2. Compile all files
  3. Run Main.java
  4. Use the menu options to:
    • Book rooms
    • Search rooms
    • Access admin panel

๐Ÿ”‘ Default Admin Credentials

Username: admin
Password: 1234

๐Ÿงฎ Concepts Demonstrated

  • Object-Oriented Programming
  • Class interaction
  • Date & time handling
  • Business logic implementation
  • Real-world system modeling