0

i have this class

theclass{
  int totalavailable;
  other informations;
}

and i made a list LinkedList<theclass> where all available rooms
The user want to see if two rooms of any of the available rooms that are at the list are availables and produce a result with the available options.
for example
availablelist: (2,lala1),(1,lala2),(2,lala3),(1,lala4) where (available, room name)(available list)
if the user search for any room and available 2 then the result can be
(2,lala1),(1,lala1) & (1,lala2),.....
if i have the available list who i can make all the available options?
Thank you very much

3
Contributors
4
Replies
24
Views
3 Years
Discussion Span
Last Post by JeffGrigg
0

your question is confusing,you said in example to get room with available 2,
how the result can be (1,lala1) ??
Please confirm your use case.

As for now,i think that you can use map(key-value pair),with room-name as key and available as value.

0

the user want 2 room any type of room so one result is 1 room type lala1 and 1 room type lala2 do you understand now what i want to do?
Thank again

0

The thing i can do is something like this:
i have this list:
(3,lala)->(4,lala1)->(1,lala2)->(5,lala3)
The user want to search for 2 rooms any type so the result list i want to produce is like this
(2,lala) , (1,lala)->(4,lala1) , (1,lala)->(1,lala2), (1,lala)->(1,lala3), ....
these are the available options and is a linkedlist of linkedlist.
I hope you understand me

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.