Convert a Collection<String> into comma sepearted values
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/205555/the-most-sophisticated-way-for-creating-comma-separated-strings-from-a-collection">The most sophisticated way for creating comma-separated Strings from a Collection/Array/List?</a>  </p>
</blockquote>



<p>I have a Collection </p>

<p>I wanted to have a String object from the Collection Object with elements as Comma seperated. </p>

<p>For eg </p>

<pre><code>      Collection&lt;String&gt; = [1,2,3..]
      String temp = "1,2,3,4....";
</code></pre>
