I have a TreeMap which has a string key and the value part is a List with atleast four values.
Map<String,List<String>> mMap = new TreeMap<String,List<String>>();
I am using the tree map so that my keys are sorted. However after the sort I want to map this TreeMap to a listview. I want to convert the Map to a list and then build an Adapter for listview. However I am not able to convert it when I do
ArrayList<String> trendyList = new ArrayList<String>(mMap);
It says: The constructor ArrayList<String>(Map<String,List<String>>) is undefined
Is there any other way I can do this?
trendyList
should contain keys or values? – Gorski