Replacing the values of columns in text file
<p>I have a file with different columns, the values of each column are string labels</p>

<pre>
col1    col2   col3
-----   -----  -----
A       WM     S2
B       JK     S3
C       ZO     S2
</pre>

<p>If I want to replace the values of each values to be numeric, I will have my table in the following format</p>

<pre>
col1    col2   col3
-----   -----  -----
0       3       6
1       4       7
2       5       6
</pre>

<p>How to write this in java?</p>
