Here you can find the source of objectArrayToObjectArray(Object[] objArray)
public static Object[] objectArrayToObjectArray(Object[] objArray)
//package com.java2s; //License from project: Open Source License public class Main { public static Object[] objectArrayToObjectArray(Object[] objArray) { Object[] array = new Object[objArray.length]; int i = 0; for (Object obj : objArray) { array[i++] = obj;/* ww w . j av a 2 s. c o m*/ } return array; } }