Here you can find the source of implode(String glue, String[] strArray)
public static String implode(String glue, String[] strArray)
//package com.java2s; public class Main { public static String implode(String glue, String[] strArray) { String ret = ""; for (int i = 0; i < strArray.length; i++) { ret += (i == strArray.length - 1) ? strArray[i] : strArray[i] + glue; }/*ww w. ja v a 2 s. c om*/ return ret; } }