Here you can find the source of unsplit(String[] array, String seperator)
public static String unsplit(String[] array, String seperator)
//package com.java2s; import java.util.Iterator; public class Main { public static String unsplit(String[] array, String seperator) { StringBuilder str = new StringBuilder(); for (int i = 0; i < array.length; i++) { str.append(array[i]);//from w w w. ja va 2 s. c o m if (i < array.length - 1) str.append(seperator); } return str.toString(); } public static String toString(Iterable<String> strs) { StringBuilder ret = new StringBuilder(); for (Iterator<String> i = strs.iterator(); i.hasNext();) { ret.append(i.next()); if (i.hasNext()) ret.append(","); } return ret.toString(); } }