how to replace substring with particular value dynamically?
<p>I have values in my properties file like,</p>

<blockquote>
  <p>bloodpressure.properties :<br>
      (key,value) : (bloodpressure,your blood pressure was <strong><em>B6</em></strong>, this is high)</p>
</blockquote>

<p>In My java class, i am reading values from properties file but i want to replace values with calculated values like,</p>

<pre><code>String B6 = "120";
Properties bp = new Properties();
bp.load(new FileInputStream("filename"));

String bpstr = bp.getProperty(bloodpressure);
</code></pre>

<p>now, i want to replace B6 value with above B6 value(120).<br>
How can i do it dynamically?, i have lot of string like this.</p>

<p>I just want to iterate through properties file, the values should replace with calculated values. </p>
