title: Convert array to string without brackets, commas, or spaces
body: <p>I'm trying to convert an array list of individual letters (e.g. {"a", "b", "c"}) into a string that is that is made from all those letters combined — in order — to make a word. So with the example above, the array would be {"a", "b", "c"} and the word would be "abc". I'm currently using the code below:</p>
  
  <pre><code>ArrayList&lt;String&gt; arr = new ArrayList&lt;String&gt;();
  String str = "a"; //this is just to define it before hand with a random value
  *after a lot more code*
  str = Arrays.toString(arr.toArray()).replace("[", "").replace("]", "").replace(",", "");
  System.out.println(str);
  </code></pre>
  
  <p>This works — I get my result without brackets or commas, but since I replaced the commas and brackets with spaces, I get "a b c" instead of "abc". Is there a way to change this so I can replace the commas with purely nothing instead of spaces? I guess a better way to phrase this would be to completely <em>remove</em> the commas and brackets. </p>
  
  <p>Thanks so much for any help.</p>