List of utility methods to do Array to String
String | arrayToString(final Object[] arr) array To String if (arr == null) { return ""; final StringBuilder sb = new StringBuilder(); for (final Object item : arr) { sb.append(item); return sb.toString(); ... |
String | arrayToString(final Object[] array) array To String String result = "["; for (int i = 0; i < array.length; ++i) { result += array[i].toString(); if (i < array.length - 1) { result += ", "; result += "]"; ... |
String | arrayToString(final Object[] array) Provides a string representation of the provided array of objects. final StringBuilder builder = new StringBuilder(); builder.append(ARRAY_START); if (array != null && array.length > 0) { appendNonEmptyArrayToString(array, builder); builder.append(ARRAY_END); return builder.toString(); |
String | arrayToString(final String[] args) Converts array to string with comma (,) separated tokens. if (args == null || args.length == 0) return null; final StringBuilder sb = new StringBuilder(); for (String arg : args) sb.append(arg).append(","); return sb.substring(0, sb.length() - 1); |
String | arrayToString(final String[] strs) Returns the string representation as strs . return arrayToString(strs, ESCAPE, COMMA);
|
String | arrayToString(final String[] value) Converts a String[] to a single String if (value == null || value.length == 0) return ""; StringBuilder buff = new StringBuilder(value[0]); for (int i = 1; i < value.length; ++i) buff.append("*").append(value[i]); return buff.toString(); |
String | arrayToString(final String[] values) array To String boolean isFirst = true; StringBuilder str = new StringBuilder(); for (String mode : values) { if (!isFirst) { str.append(','); str.append(mode); isFirst = false; ... |
String | arrayToString(final T... data) array To String String sdata = ""; for (final T o : data) { sdata += "," + o; return sdata.substring(1); |
String | arrayToString(final T[] array) array To String return collectionToString(Arrays.asList(array), DEFAULT_LIST_SEPARATOR);
|
String | arrayToString(float[] a) array To String String result = ""; for (int i = 0; i < a.length; i++) { result += floatToString(a[i]) + " "; return result; |