i currently have a hash map holding keys with values as follows:
key1=AAA value1=10
key2=BBB value2=20
key3=CCC value3=30
key4=DDD value4=40
i also have an array the same size as the hash map (the above size is 4, so the array would also be size 4). lets say it looks like this:
[5][6][7][8]
I would like to multiply value1 (ie 10) with the first value in the array, giving 50, multiply value2 (ie 20) with the second value in the array, giving 120 etc etc for every element in the array/hash map.
How would i go about doing this?
the major problem is that the size of the array and hash map (remember they are the same), will vary. Any help on this would be much appreciated
cheers
key1=AAA value1=10
key2=BBB value2=20
key3=CCC value3=30
key4=DDD value4=40
i also have an array the same size as the hash map (the above size is 4, so the array would also be size 4). lets say it looks like this:
[5][6][7][8]
I would like to multiply value1 (ie 10) with the first value in the array, giving 50, multiply value2 (ie 20) with the second value in the array, giving 120 etc etc for every element in the array/hash map.
How would i go about doing this?
the major problem is that the size of the array and hash map (remember they are the same), will vary. Any help on this would be much appreciated
cheers