First you have to read the file for that
Make a File object and read its contents using BufferedReaderObject.readLine();
this will return a string. with values VAL
LEU
SER
PRO
ALA
etc..
next is to convert this each valueinto corresponding letter by nested if conditions.
Continue this while(!feof())
+****************+
| new_programmer |
******************
new_programmer
Junior Poster in Training
53 posts since Jul 2010
Reputation Points: 10
Solved Threads: 6
HashMap (look it up in the API).
Add the 3 letter codes as keys and the 1 letter codes as values.
HashMap then does the lookup for you, value = map.get(key).
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073