title: How to get data from Set in one go
body: <p>I want to get all values of a set interface in one go as a comma separated string.</p>
  
  <p>For Example(Java Language):</p>
  
  <pre><code>Set&lt;String&gt; fruits=  new HashSet&lt;String&gt;();
  
  fruits.add("Apple");
  fruits.add("Banana");
  fruits.add("Orange");
  </code></pre>
  
  <p>If I print the set as <code>fruits.toString</code> then the output would be:</p>
  
  <pre><code>[Apple, Banana, Orange]
  </code></pre>
  
  <p>But my requirement is <code>Apple, Banana, Orange</code> without the square brackets.</p>