HashMaps

Kind of basic question...

Are hashmaps limited to only being setup (values preset in code)

before execution or are they dynamic?

Also, what kind of map interface would be recommended if I wanted to store

say "Items" such as:

myItems<String itemNAME, int itemVALUE>

That would allow values to be changed/added/removed all well the game is running>?

[420 byte] By [sharokua] at [2007-11-27 4:29:12]
# 1
1. Maps are dynamic.2.Map < String, Integer> items = new HashMap < String, Integer >();Read the collection framework tutorial before you do anything else: http://java.sun.com/docs/books/tutorial/collections/index.html
Hippolytea at 2007-7-12 9:38:08 > top of Java-index,Java Essentials,New To Java...