I am needing to loop over a created hashmap to make a new hashmap and add an integer to it.
Right now I am using Iterators, but it seems that it iterates in no particular order
So if I put this data in my map
map.put(one, alpha)
map.put(two, delta)
map.put(three, gamma)
And then I iterated it based on the order My new hashmap would have:
key: one value: 1
key: two value: 2
key: three value: 3
Right now when I try to run it it comes out like this:
key: two value: 1
key: one value: 2
key: three value: 3