I defined a hashmap as follows:
HashMap<String, List<String>> hashmap = new HashMap<String, List<String>>();
And I would like to retrieve the complete list of keys and print them. However, keySet()
does not work for maps defined as <String, List<String>>
Set<String, List<String>> keys = hashmap.keySet();
How could I solve this problem?