List of utility methods to do String Array to String Convert
String | StringArrayToString(List String Array To String StringBuilder sb = new StringBuilder(); for (String n : array) { if (sb.length() > 0) sb.append(','); sb.append("").append(n).append(""); return sb.toString(); |
String | StringArrayToString(String[] array) String Array To String return StringArrayToString(Arrays.asList(array));
|
String | getConcatenatedString(String... args) get Concatenated String final StringBuilder sb = new StringBuilder(); for (String arg : args) { sb.append(arg); return sb.toString(); |
String | arrayToString(String[] array) array To String StringBuilder builder = new StringBuilder((array.length * 2) + 1); int numProcessed = 0; builder.append("["); for (String str : array) { numProcessed++; builder.append(str); if (numProcessed < array.length) builder.append(","); ... |
String | implode(String[] array, String glue) implode String str = ""; for (int i = 0; i < array.length; i++) { if (i < array.length - 1) { str += array[i] + glue; } else { str += array[i]; return str; |