Is there a way to replace all occurrences of a string in a variable of a list?
<p>I have a list as follows </p>

<pre><code>List&lt;Summary&gt; summary;

Summary {
    int key;
    String value1;
    String value2;
}
</code></pre>

<p>Is there a way in java (or any other utility library) to replace all occurrences of a String "String1" in the variable value1 without having to loop through the list?</p>
