Iterate over the keys to the hashtable and print each value where the key matches your shopping cart object.  I think a better way to do this is to store the shopping cart objects in a Vector of Vectors (a 2-dimensional array), so you do not have to limit yourself to a single key-value pair in a hashtable.
 
Mark

This email scanned with Norton AntiVirus 2002
 
 
----- Original Message -----
From: mike dizon
Sent: Thursday, December 20, 2001 5:56 PM
Subject: Hashtable for Shopping Cart

How do I printout the contents of a hashtable that contains a shopping cart object that I created?
 
MD

Reply via email to