Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Initializing a HashMap

807588May 17 2009 — edited May 18 2009
Hi, 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 15 2009
Added on May 17 2009
4 comments
463 views