Current location: Hot Scripts Forums » Programming Languages » Everything Java » creating and working with dynamic arrays

creating and working with dynamic arrays

 
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 04-28-09, 06:32 PM
ktsirig ktsirig is offline
New Member
 
Join Date: Apr 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
creating and working with dynamic arrays

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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
 

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating buttons on the fly - asp.net - postback not working csm ASP.NET 1 10-12-06 08:14 AM
$_GET creating problem because of PHP version difference mohit PHP 5 08-30-06 03:26 AM
hey there, im creating links that arnt working any help? 0o0o0 PHP 4 10-03-05 07:37 PM
need help creating an update section mikewooten PHP 4 12-02-04 02:33 PM
Dynamic creating e-mail acounts DaRamirez PHP 4 07-06-04 10:40 AM


All times are GMT -5. The time now is 07:35 AM.
vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.