Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ArrayList<Point> points = new ArrayList<Point>();
- String line;
- try
- {
- while((line=readFile.readLine)!=null)
- {
- if(validateRoute(line))
- {
- String[] coordinates = line.split(" ");
- double x = Double.ParseDouble(coordinates[0]);
- double y = Double.ParseDouble(coordinates[1]);
- points.add(new Point(x,y));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement