I am using this code to convert a Set to a List:
Set
List
Map> mainMap = new HashMap<>(); for (int i
Recently I found this:
ArrayList yourList = Collections.list(Collections.enumeration(yourSet));