Here you can find the source of implode(String[] input)
private static String implode(String[] input)
//package com.java2s; //License from project: GNU General Public License public class Main { private static String implode(String[] input) { String result;// w ww .j a v a2 s . co m if (input.length == 0) { result = ""; } else { StringBuffer sb = new StringBuffer(); sb.append(input[0]); for (int i = 1; i < input.length; i++) { sb.append(","); sb.append(input[i]); } result = sb.toString(); } return result; } }