Initializing a HashMap
807588May 17 2009 — edited May 18 2009Hi, I'm still pretty new to java. I need to initialize a HashMap with a generic Map interface. I don't know the capacity of my HashMap because it will change with each use of the program. the keys will be strings and the values will be an object that i wrote. How do i accomplish this? I already tried initiallizing it the way i would with a treemap, but that isn't working.