Here you can find the source of convertObjectArrayToStringArray(Object[] objectArray)
Parameter | Description |
---|---|
objectArray | a parameter |
public static String[] convertObjectArrayToStringArray(Object[] objectArray)
//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; } }