Java is reading old input files, not new ones
<p>I have some java code which reads text files, adds the contents to a vector and then prints these points to screen using a graph windower.</p>

<p>I have three pointdata.txt files, pointdata1.txt, pointdata2.txt and pointdata3.txt.</p>

<p>The problem i am having is that, even when i change the input file in my driver to pointdata1 or pointdata2, it still runs for pointdata3. I have ensured that there are no occurences of pointdata3 anywhere else in the code. It only appears twice, but i have made sure it is the same. 
I have checked the files themselves, they are different. Checked and checked and checked the pathnames, they are different!</p>

<p>Even when i comment out every <code>System.out.println()</code> in the entire code, it still prints everything!</p>

<p>It is asif the code is no longer refereing the the text files, or even running, eclipse just keeps printing what was previously added to the viewport?</p>

<p>Here is the code from my driver:</p>

<pre><code>import java.util.*;

public class PointDriver {
private PointField pointfield;

    // testing
    public void doAllTests() throws Exception{
        this.test1();
        this.test2();
    }

    // Display all points in the file
    public void test1() throws Exception{

        SimpleIO sIO = new SimpleIO();

        System.out.println("Contents of Point File: "); 
        sIO.displayFile("pointdata1.txt");
        //sIO.displayFile("pointdata2.txt");
        //sIO.displayFile("pointdata3.txt");        
        System.out.println();   

    }

// Load points from a file into a vector and echo them back to the screen 
// This uses the StringTokenizer to split the lines into two Strings, then
// uses the Point class to assign the two Strings to x,y double variables 
// which form Points.  Within the same loop, the points are also displayed
// in a window using the Graph Window class. Maximum x and y values are used  
// to determine the dimensions of the GraphWindow, adding 10 units to each 
// value to provide a border.
    public void test2() throws Exception{

        System.out.println("Contents of Point File: ");
        System.out.println();   
        System.out.println("Points are Displayed in a Graph Window");
        System.out.println();   

        Vector lines;
        lines = pointfield.getlines("pointdata1.txt");
        //lines = pointfield.getlines("pointdata2.txt");
        //lines = pointfield.getlines("pointdata3.txt");            

        Iterator IT;
        IT = lines.iterator();      

        Vector v;
        v = new Vector();

        double maxX, maxY;          

        PointField pointfield;
        pointfield = new PointField();

        GraphWindow gw;
        gw = new GraphWindow();

        while (IT.hasNext()) {

            StringTokenizer st;

            String ID = (String)IT.next();
            st = new StringTokenizer(ID);

            double x = Double.parseDouble(st.nextToken());
            double y = Double.parseDouble(st.nextToken());

            Point p;
            p = new Point(x,y);

            v.addElement(p);

            int i = v.size();
            System.out.println("Point ID: " +i+ " X: "+x+", Y: "+y);    

            gw.plotPoint(x, y);                 
        }

        this.pointfield = new PointField(v);
        maxX = this.pointfield.findMaxXPoint();
        maxY = this.pointfield.findMaxYPoint();

        int width = (int)maxX + 10;
        int height = (int)maxY + 10;

        gw.setMap(width, height);       
    }

    // Short main method to kick of all tests sequence in doAllTests method
    public static void main(String[] args) throws Exception {
        PointFieldDriver pfd;
        pfd = new PointFieldDriver();
        pfd.doAllTests();
    }
}   
</code></pre>
