I have the following definition which is fine
private List<Map<String, String>> list = new ArrayList<Map<String, String>>();
But now I need to extend it that the first string should be also type list.
I have tried with the following code,add new list and change the first string to hold
the listPrents but I got some error.
private Map<String, String> listParents = new HashMap<String, String>();
private List<Map<listParents, String>> list = new ArrayList<Map<String, String>>();
How can I do something like that ,the lists types can be changed .
Thanks,
Fedor
List<Map<List<String>, String>> list = new ArrayList<Map<List<String>, String>>();But generally I would discourage using a list to be the key in a hashmap.