Java Date - How to write "If date A is later than date B"
<p>I'm asked to write an expiry method for a policy that expires in exactly one year after it's added. I already wrote the method that adds one year to the initial date it was added.</p>

<p>Now I'm trying to write another method that returns a boolean to see if Date A is past Date B. If it's past, it means it's expired, so it'll return true. Can someone help me out with the Syntax, not sure what to do here. Thank you</p>

<pre><code>public ExpirablePolicy(float a, Date d){
    super(a);
    amount = a;
    expiryDate = new Date();
    GregorianCalendar aCalendar = new GregorianCalendar();
    aCalendar.add(Calendar.YEAR,1);
    expiryDate = aCalendar.getTime();
} 

public boolean isExpired(){
    //expiry method;
</code></pre>
