Problem with buffered File Reader
<p>I have been asked to write a file reader method, I have done one which works fine but cant get the 2nd one to work and keep getting this error after i open the booms.txt file</p>

<blockquote>
  <p>Error:java.util.NoSuchElementException</p>
</blockquote>

<p>public instance variable </p>

<blockquote>
  <p>public List booms;</p>
</blockquote>

<p>Code I'm using for the file reader</p>

<blockquote>
  <p>try</p>

<pre><code>    {
        int x;
        int y;
        double boomTime;
        boolean isAHit;
        Scanner lineScanner;
        bufferedFileReader = new BufferedReader(new FileReader(aFile));
        String currentLine = bufferedFileReader.readLine();
        while (currentLine != null)
        {
            lineScanner = new Scanner(currentLine);
            lineScanner.useDelimiter(",");
            x = lineScanner.nextInt();
            y = lineScanner.nextInt();
            boomTime = lineScanner.nextDouble();
            isAHit = lineScanner.nextBoolean();
            booms.add(new Boom(x,y,boomTime));
            currentLine = bufferedFileReader.readLine();
        }
    }
    catch (Exception anException)
    {
        System.out.println("Error:"+anException);
    }
    finally
    {
        try
        {
            bufferedFileReader.close();
        }
        catch (Exception anException)
        {
            System.out.println("Error:" +anException);
        }

}

}
</code></pre>
</blockquote>

<p>Please Help</p>
