How to read doubles from a .txt file
<p>I'm able to read the string variables, but it won't read the double for some reason.  What can I do to make it read the double?</p>

<pre><code>public class RundraiserApp
{

/**
 * @param args
 * 
 */
public static void main(String[] args)
{
    Fundraising[] dList = new Fundraising[10];

    String name = null;
    String address = null;
    String cityStateZip = null;
    double donation = 0;
    int i = 0, ctr = 0;

    Scanner in;
    File file = new File("Donations.txt");
    try
    {
        in = new Scanner(file);

        while (in.hasNext() &amp;&amp; i &lt; dList.length)
        {
            name = in.nextLine();
            address = in.nextLine();
            cityStateZip = in.nextLine();
            donation = in.nextDouble();
            i++;
        }
        ctr++;
    }
    catch (FileNotFoundException e1)
    {
        e1.printStackTrace();
    }
}
}
</code></pre>
