View Single Post
  #2 (permalink)  
Old 01-09-2008, 04:41 AM
roots's Avatar
roots roots is offline
Moderator
 
Join Date: Jan 2008
Location: Dallas
Posts: 263
roots is on a distinguished road
For each point use StringTokenizer to get ordinates. Convert to Number using Float.parseFloat method. You can store this number in an ArrayList.

When you are done reading the file. Loop over the array list and add get sum of both the ordinates.
And Bingo !!
__________________
dont worry newbie, we got you covered.
Reply With Quote