a-j hit the nail on the head there. On a side note, it looks like you are adding both the product Id and the price under the same Hash table key. This won't work. Each item in a hash table needs to have a different key. Maybe you should make a "Product" class that holds all the information about a product (Description, Id and Price from what I can see) and store that in your Hash table.
__________________
Smoke me a kipper, I'll be back for breakfast.
|