Here you can find the source of arrayToString(final String[] value)
Parameter | Description |
---|---|
value | the String[] to convert |
value
concatenated, with "*
" as separator
private static String arrayToString(final String[] value)
//package com.java2s; //License from project: Open Source License public class Main { /**// w w w. jav a2 s. co m * Converts a String[] to a single String * * @param value the String[] to convert * @return the contents of <code>value</code> concatenated, with "<code>*</code>" as separator */ private static String arrayToString(final String[] value) { 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(); } }