Here you can find the source of objectArrayToStringArray(Object[] objectArray)
public static String[] objectArrayToStringArray(Object[] objectArray)
//package com.java2s; //License from project: Open Source License public class Main { public static String[] objectArrayToStringArray(Object[] objectArray) { String[] returnString = new String[objectArray.length]; for (int i = 0; i < objectArray.length; i++) { returnString[i] = (String) objectArray[i]; }/* w w w .jav a 2 s.co m*/ return returnString; } }