How will you convert an ArrayList to Arrays?
using toArray() method. example: ArrayList<Integer> al = new ArrayList<Integer>(); al.add(1); al.add(5); al.add(8); al.add(10); //Get the array Integer tempArray = new Integer[al.size()]; tempArray = al.toArray(tempArray);