Here you can find the source of convertStringCollectionToString(Collection
public static String convertStringCollectionToString(Collection<String> collectionString, String delemeter)
//package com.java2s; /**//w ww . j av a 2 s.c o m * Copyright (c) 2005-2009 springside.org.cn * * Licensed under the Apache License, Version 2.0 (the "License"); * * $Id: ReflectionUtils.java,v 1.1 2014/11/10 06:38:51 daiyl Exp $ */ import java.util.*; public class Main { public static String convertStringCollectionToString(Collection<String> collectionString, String delemeter) { StringBuilder sb = new StringBuilder(""); for (String s : collectionString) { if (sb.length() != 0) { sb.append(delemeter); } sb.append(s); } return sb.toString(); } }