title: LocalDateTime and comparing
body: <p>I am trying to make a method that returns a boolean that compares the current month day and year to a supplied, saved month day and year. This is my code and I'm not sure what I am doing wrong but all my supplied dates are coming up true. I think I have declared something wrong but I'm not sure.</p>
  
  <pre><code>public boolean isExpired(){
      boolean expired = true;
  
      LocalDateTime today = LocalDateTime.now();
      int month = today.getMonthValue();
      int year = today.getYear();
      int day = today.getDayOfMonth();
  
      if((this.expYear &lt;= year) &amp;&amp; (this.expMonth &lt;= month) &amp;&amp; (this.expDay &lt;= day))
      {
          expired = false;
      }
  
      return expired;
  }
  </code></pre>