android replace multiple characters from a string
<p>I know that this may be an amateur question but for some reason I can't remember how to do this.
I have 2 strings.</p>

<pre><code>String s ="[";
String q ="]";
</code></pre>

<p>if my text contains any of these i want to replace it with <code>w</code> which is:</p>

<pre><code>String w = "";
</code></pre>

<p>I have tried the following:</p>

<pre><code>output=String.valueOf(profile.get("text")).replace(s&amp;&amp;q, w);
</code></pre>

<p>from what i understand if of S([) and any of Q(]) are in text they will be replaced with w.
my problem is getting the 2. if i only try and replace one then it will work. otherwise it wont.</p>

<p>any help would be appreciated</p>
