I'm working on an Android project in which I have to get all the values from a hash table regardless the key. My map is
HashMap<String, ArrayList<MyProduct>> orderAdap = InvocieProductFragment.mapOrderd;
And from this map I'm loading relevent Product ArrayList according to product name.
ArrayList<MyProduct> lstStyle = orderAdap.get(lstBrandCode.get(position));
But my problem is can I load all the Product lists into a single ArrayList without concerning key values in this hash map.
For instance imagine my hash map is something like this.
[ss,[p1,p2,p3]],[we,[p3,p4]],[rf,[p1,p4,p5,p7,p9]]
and I need the output as
[p1,p2,p3,p3,p4,p1,p4,p5,p7,p9]
Can this be done. Need help. Thanks.....