title: removing [ and ] from arraylist
body: <p>I have to print the list values in the form of String. But I am held up with the <code>[</code> and <code>]</code> in the list. Here is my code.</p>
  
  <pre><code>List dbid=new ArrayList();
  dbid.add(ar.getdbID());
  String check=ar.getdbID().toString();
  </code></pre>
  
  <p>output for the above code : </p>
  
  <pre>[2, 3,4]</pre>
  
  <p>But I just need this:</p>
  
  <pre>2,3,4</pre>