Here you can find the source of arrayJoin(String[] array, char with)
public static String arrayJoin(String[] array, char with)
//package com.java2s; //License from project: Open Source License public class Main { public static String arrayJoin(String[] array, char with) { if (array == null || array.length == 0) { return ""; }//from ww w . java 2s .c om int len = array.length; StringBuilder sb = new StringBuilder(16 + len * 8); sb.append(array[0]); for (int i = 1; i < len; i++) { sb.append(with); sb.append(array[i]); } return sb.toString(); } }