Here you can find the source of implode(String[] array, char delimiter)
public static String implode(String[] array, char delimiter)
//package com.java2s; //License from project: Apache License public class Main { /** implode the given array */ public static String implode(String[] array, char delimiter) { StringBuilder sb = new StringBuilder(); for (String s : array) { sb.append(s).append(delimiter); }/*from w w w . j ava 2 s .c om*/ return (sb.length() == 0) ? ("") : (sb.substring(0, sb.length() - 1)); } }