Java tutorial
//package com.java2s; public class Main { public static String join(String[] array, String delimiter) { StringBuilder sb = new StringBuilder(); for (String str : array) { sb.append(str); sb.append(delimiter); } return sb.toString(); } }