List of utility methods to do Object Array to String
String | objectArrayToString(Object[] objectArray) object Array To String StringBuffer arrayString = new StringBuffer("{"); if (objectArray == null) { arrayString.append("null"); } else if (objectArray.length == 0) { arrayString.append("empty"); } else { boolean first = true; for (int i = 0; i < objectArray.length; i++) { ... |
String | objectArrayToString(Object[] objects) object Array To String StringBuffer buffer = new StringBuffer(); for (int i = 0; i < objects.length; i++) { buffer.append(objects[i]).append(" "); return buffer.toString(); |
String | objectArrayToString(String separator, Object... objects) Returns a string which is a concatenation of the #toString() of the objects passed to the method, separated by #separator StringBuffer buffer = new StringBuffer(); for (Object obj : objects) { buffer.append(obj.toString()).append(separator); String res = buffer.toString(); if (res.lastIndexOf(separator) == -1) { return res; return res.substring(0, res.lastIndexOf(separator)); |
String[] | objectArrayToStringArray(final Object[] objectArray) Converts an Object array to a String array (null-safe), by calling toString() on each element. if (objectArray == null) { return null; final String[] stringArray = new String[objectArray.length]; for (int i = 0; i < objectArray.length; i++) { stringArray[i] = objectArray[i] != null ? objectArray[i].toString() : null; return stringArray; ... |
String[] | objectArrayToStringArray(Object data[]) object Array To String Array String newdata[] = new String[data.length]; int i = 0; Object aobj[]; int k = (aobj = data).length; for (int j = 0; j < k; j++) { Object cur = aobj[j]; newdata[i] = (String) cur; i++; ... |
String[] | objectArrayToStringArray(Object[] objectArray) object Array To String Array String[] returnString = new String[objectArray.length]; for (int i = 0; i < objectArray.length; i++) { returnString[i] = (String) objectArray[i]; return returnString; |
String[] | objectArrayToStringArray(Object[] objs) object Array To String Array if (objs == null) return null; String[] s = new String[objs.length]; System.arraycopy(objs, 0, s, 0, s.length); return s; |
String[][] | objectArrayToStringArray(Object[][] objects) object Array To String Array String[][] array = null; if (objects == null) { return null; int length = objects.length; array = new String[length][2]; for (int i = 0; i < length; i++) { array[i][0] = (String) objects[i][0]; ... |