Java Object Array to String convertObjectArrayToStringArray(Object[] objectArray)

Here you can find the source of convertObjectArrayToStringArray(Object[] objectArray)

Description

convert Object Array To String Array

License

Open Source License

Parameter

Parameter Description
objectArray a parameter

Return

stringArray

Declaration

public static String[] convertObjectArrayToStringArray(Object[] objectArray) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from   w w  w . ja v a 2s . co  m*/
     * 
     * @param objectArray
     * @return stringArray
     */
    public static String[] convertObjectArrayToStringArray(Object[] objectArray) {
        String[] stringArray = new String[objectArray.length];
        int i = 0;
        for (Object o : objectArray) {
            stringArray[i] = o.toString();
            i++;
        }
        // Arrays.sort( stringArray );
        return stringArray;
    }
}

Related

  1. convertObjectArrayToStringArray(Object[] array)
  2. convertObjectToString(Object obj)
  3. convertObjectToString(Object obj)
  4. convertObjectToString(Object object)
  5. convertObjectToString(Object value)