package com.google.sps.servlets;

import com.google.sps.data.Waypoint;
import java.io.BufferedReader; 
import java.io.IOException;

public class WaypointsLoader {
  final static Map<Grid, Waypoint> map;

  public static void read() throws IOException{
    BufferedReader waypointsReader = new BufferedReader(
        new FileReader("/waypoints.txt"));
    String coordinate;
      while((coordinate = waypointsReader.readLine()) != null){
        String[] coordinateWaypoint = coordinate.split(",");
        double lat = Double.parseDouble(coordinateWaypoint[0].trim());
        double lng = Double.parseDouble(coordinateWaypoint[1].trim());
        System.out.println("LAT: " lat + " LNG: " + lng);
        Waypoint waypoint = new Waypoint(lat, lng);
      }
  }
}
@@ -368,16 +368,21 @@
 dinate;%0A
+    %0A
       wh
@@ -510,20 +510,53 @@
     
-double lat =
+Waypoint waypoint = new Waypoint(%0A           
  Dou
@@ -592,33 +592,34 @@
 point%5B0%5D.trim())
-;
+, 
 %0A        double 
@@ -615,20 +615,11 @@
     
-double lng =
+   
  Dou
@@ -667,117 +667,8 @@
 m())
-;%0A        System.out.println(%22LAT: %22 lat + %22 LNG: %22 + lng);%0A        Waypoint waypoint = new Waypoint(lat, lng
 );%0A 

Remove unnecessary variables