Java tutorial
//package com.java2s; import java.util.ArrayList; public class Main { public static Object[] toObjectArray(ArrayList<Object> array) { Object arr[] = new Object[array.size()]; for (int i = 0; i < array.size(); i++) { arr[i] = array.get(i); } return arr; } }