StringUtils { public static String arrayToString(Object[] items, char separator, String prefix, String postfix) { String emptyArrayString = (EMPTY_STRING + prefix) + postfix; if (items == null) { return emptyArrayString; } if (items.length == 0) { return emptyArrayString; } Object first = items[0]; if (items.length == 1) { return first == null ? emptyArrayString : prefix + first.toString() + postfix; } StringBuffer buf = new StringBuffer(256); buf.append(prefix); if (first != null) { buf.append(first); } for (int i = 1; i < items.length; i++) { buf.append(separator); Object obj = items[i]; if (obj != null) { buf.append(obj); } } buf.append(postfix); return buf.toString(); }  static boolean isBlank(String str); static boolean isNotBlank(String str); static String mapToStringWithPrefix(Map<String, String> map, String prefix); static String mapToString(Map<String, String> map); static void stringToMap(String str, Map<String, String> map); static String escapeComma(String str); static String unescapeComma(String str); static String arrayToString(Object[] items, char separator, String prefix, String postfix); static String escapePercentEqualAnd(String str); static String unescapeEqualAndPercent(String str); static boolean hasText(CharSequence str); static String cleanPath(String path); static String collectionToDelimitedString(Collection<?> coll, String delim); static String collectionToDelimitedString(Collection<?> coll, String delim,
                                                     String prefix, String suffix); static String[] delimitedListToStringArray(String str, String delimiter); static String[] delimitedListToStringArray(String str, String delimiter,
                                                      String charsToDelete); static String[] toStringArray(Collection<String> collection); static String deleteAny(String inString, String charsToDelete); static String replace(String inString, String oldPattern, String newPattern); static int countMatches(String str, char c); static final String NEWLINE; static final String EMPTY_STRING; static final String EQUAL; static final String AND; static final char EQUAL_CHARACTER; static final char AND_CHARACTER; static final String[] EMPTY_STRING_ARRAY; }
@Test public void testArrayToString() throws Exception { }