i want to create hashmap.how its possible i want this type hashmap as below
{Question=how are you, friend=mack}
{Question=how are you, friend=jack}
{Question=hello, friend=mack}
{Question=hello, friend=jack}
how its get this type of map from below code
map_friend = webservice.getFrend(); //{0=Mack, 1=jack}
map_QUE = webservice.getQuestion();//{0=How are you, 1=hello}
int RQSize = map_QUE.size();
int Isize = map_ITEM.size();
for (i = 0; i < RQSize; i++)
{
rate_map = new HashMap<String, String>();
final String val = map_QUE.get(i);
rate_map.put("Question", val);
mylist.add(rate_map);
for (j = 0; j < Isize; j++)
{
rate_map1 = new HashMap<String, String>();
final String val1 = map_friend.get(j);
rate_map1.put("friend", val1);
mylist1.add(rate_map1);
}
}
mylist and mylist1 is arraylist