By Abir Basak
It is a room reservation system using Java where we prompt the user to select a room from the available rooms.
This code represents a basic implementation of a Room Reservation System using Java. It allows users to display available rooms and make reservations by selecting a room. The availability of rooms is tracked using a HashMap, where the key is the room name and the value represents its availability (true for available and false for unavailable).
in this code:
1. Display available rooms:
where we need to show the availability of the room...
Eg:
Available Rooms:
Room-1
Room-3
Room-2
Room-5
Room-4
2. Make a reservation:
Here we need to book our rooms like we need to write that room name
Eg:
Enter Room name like that:
Room-1
Room-2
Room-3
Room-4
Room-5
Enter the Rooms name to make a reservation:
then we need to pass a comment
3. Exit:
here our program ends and need to pass one comment:
Submitted by Abir Basak (Basakabir)
Download packets of source code on Coders Packet
Comments