Here you can find the source of join(Collection paramCollection, String paramString)
public static String join(Collection paramCollection, String paramString)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static String join(Collection paramCollection, String paramString) { StringBuffer localStringBuffer = new StringBuffer(); //paramCollection = (Collection) paramCollection.iterator(); while (paramCollection.iterator().hasNext()) { localStringBuffer.append("'" + paramCollection.iterator().next() + "'"); if (!paramCollection.iterator().hasNext()) continue; localStringBuffer.append(paramString); }/*from www . j a v a 2 s . c o m*/ return localStringBuffer.toString(); } public static String toString(Object paramObject) { if (paramObject == null) return "null"; return paramObject.toString(); } }