Here you can find the source of implode(String[] strings, String delimiter)
public static String implode(String[] strings, String delimiter)
//package com.java2s; //License from project: LGPL public class Main { public static String implode(String[] strings, String delimiter) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < strings.length - 1; i++) { sb.append(strings[i]).append(delimiter); }//from www . ja va2 s.c o m if (strings.length > 0) { sb.append(strings[strings.length - 1]); } return sb.toString(); } }