Replace a String at a specific index in a string?
<p>How can we replace a particular string in existing string in Java?</p>

<p>Example:</p>

<pre><code>String param = "aa,bb,cc";
String str = 
  "select column_val from table_name where a = '?' and b = '?' and c = '?'";
</code></pre>

<p>now i want replace params with its position like..</p>

<pre><code>String newStr = 
  "select column_val from table_name where a = 'aa' and b = 'bb' and c = 'cc'";
</code></pre>

<p>How can we do this? Is there any existing method in stringutil or is there any method to do this?</p>
