Here you can find the source of mergeStringArray(String[] array, String seperator)
public static StringBuilder mergeStringArray(String[] array, String seperator)
//package com.java2s; //License from project: Open Source License public class Main { public static StringBuilder mergeStringArray(String[] array, String seperator) { StringBuilder output = new StringBuilder(""); if (array != null && array.length > 0) { output.append(array[0]);//from www . j a v a2 s.c o m for (int i = 1; i < array.length; i++) { output.append(seperator).append(array[i]); } } return output; } }