How do I clear a String local to a method? My text gets appended everytime the method is run
<p>I have a local String in a method like so:</p>

<pre><code>String jString = new String();
</code></pre>

<p>or</p>

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

<p>The result is the same.</p>

<p>Later in the method I append:</p>

<pre><code>for(int i = 0; i != someArrayList.size(); ++i) {
    jString += someArrayList.get(i).getText() + "\n";
}
</code></pre>

<p>Everytime the method is run, the text from getText() gets appended to jString. </p>

<p>Why is this and how can I prevent it from happening?
Thanks!</p>

<p>OK edit. This is basically what happens. Either that or you tell me it is impossible to get the results I described with this code.</p>

<pre><code>public void requestData()  {
   String jString = new String();
   for(int i = 0; i != someArrayList.size(); ++i) {
      jString += someArrayList.get(i).getText() + "\n";
      }
}
</code></pre>

<p>Say inside the array I have values ["a", "b", "c"]. When I run the method jString contains:
a
b
c
Next time I run it, I want it to be the new contents of the array not
a
b
c
plus the new contents. </p>
