How convert a Set into a List
Given the following :
Set<Student> students = getStudents() ;
how would one convert the set students
to a List<Students>
I was thinking of doing something like :
Student[] array = students.toArray(new Student [students.size()]);
List<Student> list=Arrays.asList(array);
but it doesn't work

