title: how to convert an arraylist of Characters back to a string
body: <p>what I want to do is I want to remove &quot;<code>[</code>&quot; &quot;<code>]</code>&quot; from a string for this I tried to  Iterate over characters of a String make an ArrayList of Characters and then convert the ArrayList back to a string but know I don't know how to convert the ArrayList of characters into a string</p>
  <pre><code>String text=&quot;Hell[o Worl]d!&quot;
  ArrayList&lt;Character&gt; filtredChars = new ArrayList&lt;Character&gt;();
                  CharacterIterator it = new StringCharacterIterator(text);
                  while(it.current() != CharacterIterator.DONE)
                  {
                      if (it.current() != '[' &amp;&amp; it.current() != ']')
                          filtredChars.add(it.current());
                      it.next();
                  }
                  
  </code></pre>
  <p>is it possible or is there another solution ?</p>