title: Combine multiple strings into one JAVA
body: <p>I have a set of <code>strings</code> which want to combine into one <code>String</code> with all sentences separated with coma like <code>(*.csv)</code></p>
  
  <p>here is how it goes with me:</p>
  
  <pre><code>String dataContainer;
  
  for(String tempString:setInput){
       String finalString = "," + tempString + "," ;   
  }
  </code></pre>
  
  <p>This doesn't work with me :(<br>
  But it should do for Set ex:</p>
  
  <pre><code>Set&lt;String&gt; setInput = new TreeSet();
  setInput.add("Dog");
  setInput.add("Cat");
  setInput.add("Mouse");
  </code></pre>
  
  <p>to produce the string:</p>
  
  <pre><code>,Dog,,Cat,,Mouse,
  </code></pre>