I am using this code to convert a Set to a List:
Set
List
Map> mainMap = new HashMap<>(); for (int i
I found this working fine and useful to create a List from a Set.
ArrayList < String > L1 = new ArrayList < String > (); L1.addAll(ActualMap.keySet()); for (String x: L1) { System.out.println(x.toString()); }