Java tutorial
//package com.java2s; import java.util.ArrayList; import java.util.List; import java.util.Set; public class Main { public static final <T> List<T> setToArrayList(Set<T> set) { ArrayList<T> list = new ArrayList<T>(); for (T t : set) { list.add(t); } return list; } }