import java.util.*;
import java.lang.*;
import java.io.*;

public class MapDriver
{
  public static void main(String[] args)
  {
    File file;
    Scanner input;
    String filename = "map.txt";

    NodeList map = new NodeList();
    
    try
    {
      file = new File(filename);
      input = new Scanner(file);
      String[] values = new String[3];

      while(input.hasNext())
      {
        String inputFile = input.nextLine().trim();
        values = inputFile.split("\\|");

        MapPoint newPoint = new MapPoint(values[0], values[1], Integer.parseInt(values[2]));
        map.add(newPoint);
      }

      String output = map.toString();
      //System.out.println(output);
    }
    catch(FileNotFoundException e)
    {
      System.out.println("File not found.");
    }
    catch(NumberFormatException e)
    {
      System.out.println("Number format exception.");
    }
    
    //Minimum Spanning Tree
    MST mst = new MST(map, "Grand Forks");
    mst.driveTo(mst.start);
    System.out.println(mst.getStats());
    
    //Depth First Search
    DFS dfs = new DFS(map);
    dfs.drive("Grand Forks");
    
  } 
}

@@ -77,16 +77,21 @@
 river%0A%7B%0A
+    %0A
   public
@@ -131,23 +131,8 @@
   %7B%0A
-    File file;%0A
     
@@ -238,41 +238,8 @@
   %7B%0A
-      file = new File(filename);%0A
     
@@ -260,20 +260,34 @@
 Scanner(
-file
+new File(filename)
 );%0A     
@@ -306,24 +306,8 @@
 lues
- = new String%5B3%5D
 ;%0A%0A 
@@ -354,24 +354,14 @@
     
-String inputFile
+values
  = i
@@ -386,36 +386,8 @@
 im()
-;%0A        values = inputFile
 .spl
@@ -397,25 +397,24 @@
 %22%5C%5C%7C%22);%0A
-%0A
         
 MapPoint
@@ -409,28 +409,16 @@
     
-MapPoint newPoint = 
+map.add(
 new 
@@ -480,119 +480,18 @@
 2%5D))
-;%0A        map.add(newPoint);%0A      %7D%0A%0A      String output = map.toString();%0A      //System.out.println(output);
+);%0A      %7D
 %0A   
@@ -719,16 +719,43 @@
 ng Tree%0A
+    NodeList mstMap = map;%0A
     MST 
@@ -769,16 +769,19 @@
 ew MST(m
+stM
 ap, %22Gra
@@ -890,16 +890,43 @@
  Search%0A
+    NodeList dfsMap = map;%0A
     DFS 
@@ -939,17 +939,20 @@
 new DFS(
-m
+dfsM
 ap);%0A   
@@ -986,12 +986,14 @@
     %0A  %7D
+%0A 
  %0A%7D%0A

Update MapDriver.java