Find a pair of string at integer and subtract, java
<p>I have a string which contains a value:</p>

<pre><code>12345    5
54321    4
98765    10
</code></pre>

<p>The first value is a number, the second value is a count. The string value is obtained by this code:</p>

<pre><code>for(ClusterListBean bean : clusterList) {
    line += bean.getMSISDN()+"\t"+bean.getRewardCount()+"\n";               
}
</code></pre>

<p>Now I am reading a file which has same contents but different count value.</p>

<p>This is accomplished by:</p>

<pre><code>BufferedReader ln = FileCreatorUtil.readFile(configFileUtil.prevFile().getFileDir()+prevFile.clusterPrevFile().getFileName());
</code></pre>

<p>Now what I want to do is to search for a number value, get the count paired with it, and subtract the count. Example:</p>

<p>BufferedReader ln contents:</p>

<pre><code>12345    5
54321    4
98765    10
</code></pre>

<p>String line contents:</p>

<pre><code>12345    7
54321    9
98765    15
</code></pre>

<p>Output should be:</p>

<pre><code>12345    2
54321    5
98765    5
</code></pre>
