Hi there, i am trying to use hashmap on my flight reservation program. I am not much confidence about you. Any suggestion would be much appreciated. Cheers
2 Replies - 440 Views - Last Post: 08 September 2011 - 07:11 PM
#1
Any help how to use hashmap on my flight reservation program?
Posted 08 September 2011 - 04:16 AM
Replies To: Any help how to use hashmap on my flight reservation program?
#2
Re: Any help how to use hashmap on my flight reservation program?
Posted 08 September 2011 - 09:34 AM
You could do something like store a customer's name in a key, then a customer number in a value.
There are many people here who can help, but we need more info, please.
There are many people here who can help, but we need more info, please.
#3
Re: Any help how to use hashmap on my flight reservation program?
Posted 08 September 2011 - 07:11 PM
I suspect that two John Smith might be on the same flight, especially if it is a 747 or a A380. And what will you do with 500 different passenger names in your HashMap.
I would rather use the seat number as a key and the passenger name as value. That will garanty only one passenger per seat.
I would rather use the seat number as a key and the passenger name as value. That will garanty only one passenger per seat.
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|