Here you can find the source of combine(String[] strs, String delimeter)
public static String combine(String[] strs, String delimeter)
//package com.java2s; //License from project: Open Source License public class Main { public static String combine(String[] strs, String delimeter) { StringBuilder sb = new StringBuilder(strs.length * (20 + delimeter.length())); for (String str : strs) { sb.append(str);// ww w . j a va 2 s . c o m sb.append(delimeter); } return sb.toString(); } }