ArrayList<Student> alist = new ArrayList();
// object type is student
//arraylist contains student objects
Student[] arr= new Student[un.size()];
for(int i = 0; i <= alist .size(); i++){
them[i] = arr.get(i);
}
What I want to do is to create an array of students without getting the array out of bounds exception.