title: Enum Class for month and keeper
body: <p>I am being asked to create a new public enum class called Month and provide it with the enum constants of January – December, and I am also asked to write a reminder letter to all keepers at the start of the month at which their tax expires and write a method in the DVLA class that will return a data structure of my choice that will hold the registration numbers, names and addresses of all keepers whose car should be retaxed at the end of the month in question.</p>
  
  <p>Enum class I have so far:</p>
  
  <pre><code>package DVLA;
  
  public enum Month {
  
      January(1),
      February(2),
      March(3),
      April(4),
      May(5),
      June(6),
      July(7),
      August(8),
      September(9),
      October(10),
      November(11),
      Decemeber(12);
  
      private final int value;
  
      private Month(int value)
      {
          this.value = value;
      }
  
      public int getValue() {
          return value;
      }
  }
  </code></pre>
  
  <p>and the keeper class:</p>
  
  <pre><code>package DVLA;
  
  public class Keeper implements Comparable&lt;Keeper&gt; {
  
      private final RegNo regno;
      private String forename;
      private String surname;
      private Address address;
  
      public Keeper(RegNo regno, String forename, String surname, Address address)
      {
          this.regno = regno;
          this.forename = forename;
          this.surname = surname;
          this.address = address;
      }
  
      public int compareTo(Keeper kp) {
          if(kp == null)
              return -1;
          else
              return regno.compareTo(kp.regno);
      }
  
      public boolean equals(Object obj) {
          Keeper kp = (Keeper) obj;
          if (kp == null)
              return false;
          else
              return regno.equals(kp.regno);
      }
  
      public String getForename() 
      {
          return forename;
      }
  
      public void setForename(String forename) 
      {
          this.forename = forename;
      }
  
      public String getSurname() 
      {
          return surname;
      }
  
      public void setSurname(String surname) 
      {
          this.surname = surname;
      }
  
      public String toString() {
          return "Keeper [regno=" + regno + ", forename=" + forename
                  + ", surname=" + surname + ", address=" + address + "]";
      }
  }
  </code></pre>