I have a Hashtable which has a key of String and the value as String, but I’ve reached a point in my project where I need to be able to store multiple different data types. For example, I’m going to need to store int, String, Date, etc, all in one Hashtable.
I have a Hashtable which has a key of String and the value as
Share
HashTableor any CollectionMapcan handle this, except forintand other primitive types: you can’t store primitive types, onlyObjectreferences.intwill need to be wrapped as aIntegerobject.