A Java-based Hotel Reservation System developed as part of the CodeAlpha Java Programming Internship.
This project simulates a hotel booking environment where users can search rooms, make reservations, manage bookings, cancel reservations, and view payment summaries through a menu-driven console application.
- 🔍 Search available rooms by category
- 🏨 View all available rooms
- 📋 Make hotel reservations
- ❌ Cancel reservations
- 💳 View payment summary
- 📂 Booking history logging
- 📊 Session statistics tracking
- 💾 File handling for data persistence
- Java
- Object-Oriented Programming (OOP)
- Java Collections Framework
- ArrayList
- File Handling
- Exception Handling
CodeAlpha_HotelReservationSystem/
data/
├── bookings.txt
└── rooms.txt
src/
├── Main.java
├── Hotel.java
├── Room.java
├── Customer.java
├── Reservation.java
├── BookingLogger.java
├── SessionStats.java
└── UI.java
README.md
| Room Number | Category | Price |
|---|---|---|
| 101 | Standard | ₹1500 |
| 102 | Standard | ₹1500 |
| 201 | Deluxe | ₹4000 |
| 202 | Deluxe | ₹4000 |
| 301 | Suite | ₹7000 |
Displays all currently available rooms.
Search rooms by category.
Examples:
- Standard
- Deluxe
- Suite
Allows users to reserve an available room.
Displays all active reservations.
Cancels an existing reservation.
Displays the total amount for all active reservations.
Displays:
- Total bookings made
- Total cancellations
- Current active reservations
Compile:
javac src/*.javaRun:
java -cp src MainThis project helped me strengthen my understanding of:
- Designing multi-class Java applications
- Applying Object-Oriented Programming principles
- Managing data using Java Collections
- Implementing file handling
- Building menu-driven systems
- Simulating real-world reservation workflows
Program: CodeAlpha Java Programming Internship
Project: Hotel Reservation System
Ankit Yadav
GitHub: https://github.com/Srvankit