Here you can find the source of flattenStringArray(String[] s_array, String delimiter)
public static String flattenStringArray(String[] s_array, String delimiter)
//package com.java2s; public class Main { public static String flattenStringArray(String[] s_array, String delimiter) { StringBuffer flat = new StringBuffer(); for (int i = 0; i < s_array.length; i++) { flat.append(s_array[i]).append(delimiter); }/*from w w w .ja v a 2 s . com*/ return flat.toString(); } }