Hi,
I was loading data from database and insert into map. When I tried to print map
size and data. it is still showing size 1 and only last row is printitng.
all previous data is overwritten and contain last value. Any Pointer in this
issue. I have change the name of variable because of company issue.
I have done some check Point also.
1. all key value is unique.
It can't work because you're using an array as a key, so you don't have the any operator for comparison that map can use. Maybe you want to put a string instead. I think param_name has always the same address throughout the entire loop, so every time you're just overwriting the same element in the map (and then size=1).