jaguRita

jaguRita

  • NA
  • 40
  • 0

Newbie HashTable Problem

Aug 8 2007 3:33 AM

Is there any way to add integer elements into HashTable? If Hashtable named as h1.

Like h1.Add(10);h1.Add(20);h1.Add(30);

But i studied about Hashtable has two fields key and value pair.But i need to know can we add items into hashtable like Arraylist or List?If i add only one item into hashtable it shows an error.Is there any other way to add only integer elements into Hashtable?If i can do that how will i retrieve hashtable items?Please help me to clear my problem.

Thanks.


Answers (3)