Cannot find symbol Date
<p>I'm getting an error "cannot find symbol method add(java.util.Date)", although what I'm passing it was declared a Date.  What am I missing?</p>

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


class Entry {
    Date date;

    Entry(Date aDate) {
        date = aDate;
    }
}

public class td {
    public static void main(String[] args) { 

        List&lt;Entry&gt; entries = new ArrayList&lt;Entry&gt;();

        DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        Date aDate = df.parse("2011-02-27"); // Date aDate = new Date() also fails

        entries.add(aDate);

        System.out.println(entries.get(0));
    }
}
</code></pre>
