How to put multiple items to a hashtable
Posted on 2009-12-18
I have object that I need to pass down to service. At my work they wont allow value objects and I was told to just create a hash map and pass it down.
So for example I have the following data
First Name Last Name Mi
Smuck Joe A
Boone Daniel C
Now I want to create a hashtable which puts the three related items for each two rows in a hashtable(hashmap)??? Saw the below example but not grasping for mulitple related items.
Hashtable ht = new Hashtable();
ht.put("One", new Integer(1));
ht.put("Two", new Integer(2));
Object obj = ht.get("One");