Hello all! I am very new to Java programming and have came up with my first problem:
I have a file which has several lines, similar to:
Code:
ATOM 1 N SER P 71 -47.333 0.941 8.834 1.00 52.56 N
ATOM 2 CA THR P 71 -45.849 0.731 8.796 1.00 53.56 C
ATOM 3 C TRY P 71 -45.191 1.608 7.714 1.00 51.61 C
What I want to do is, while reading the text file, find all lines that begin with ATOM and store the 3 letters (in this example SER, THR, TRY) along with the numbers close to them (in this example -47.333, -45.849 and -45.191 respectively).
Once the array is constructed, we need to find the lowest and the highest value of it and substract them.
Could you point me out to some guidelines please?
Thank you in advance!