Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. ArrayList<Point> points = new ArrayList<Point>();
  2.  
  3. String line;
  4.  
  5. try
  6. {
  7. while((line=readFile.readLine)!=null)
  8. {
  9. if(validateRoute(line))
  10. {
  11. String[] coordinates = line.split(" ");
  12. double x = Double.ParseDouble(coordinates[0]);
  13. double y = Double.ParseDouble(coordinates[1]);
  14.  
  15. points.add(new Point(x,y));
  16. }
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement