find and replace strings
<p>I am trying to find and replace strings. Below is what I have sofar. 
I am troubled on how to force all the changes to show in one line as showed below.</p>

<pre><code>Strings source = "parameter='1010',parameter="1011",parameter="1012" ";
Expected result = "parameter='1013',parameter="1015",parameter="1009" ";


Strings fin1 = "1010";

Strings fin2 = "1011";

Strings fin3 = "1012";

Strings rpl1 = "1013";

Strings rpl1 = "1015";

Strings rp21 = "1009";

Pattern pattern1 = Pattern.compile(fin1);
Pattern pattern2 = Pattern.compile(fin2);
Pattern pattern3 = Pattern.compile(fin3);

Matcher matcher1 = pattern1.matcher(source);  
Matcher matcher2 = pattern2.matcher(source); 
Matcher matcher3 = pattern3.matcher(source);

String output1  = matcher1 .replaceAll(rpl1);
String output2  = matcher2 .replaceAll(rpl2);
String output3  = matcher3 .replaceAll(rpl3);
</code></pre>

<p>thanks,</p>
