title: Java: Basic class definition
body: <p>Define the missing method. 
  licenseNum is created as: (100000 * customID) + licenseYear. 
  Sample output: Dog license: 77702014</p>
  
  <p>This is what I did:</p>
  
  <pre><code> public void createLicenseNum() {
      licenseNum = (licenseNum * 100000) + licenseYear;
      return;
   }
  </code></pre>
  
  <p>But it's incorrect. Where am I going wrong?</p>
  
  <blockquote>
    <p>CallDogLicense. java:32:
     createLicenseNum() in DogLicense cannot be applied      to (int)
     dog1.createLicenseNum(777);</p>
  </blockquote>
  
  <p>Code from file DogLicense.java</p>
  
  <pre><code>    public class DogLicense {
        private int licenseYear;
        private int licenseNum;
  
        public void setYear(int yearRegistered) {
          licenseYear = yearRegistered;
          return;
        }
  
        // FIXME: Write createLicenseNum()
  
        /* Your solution goes here  */
  
        public void createLicenseNum() {
          licenseNum = (licenseNum * 100000) + licenseYear;
          return;
        }
  
        public int getLicenseNum() {
          return licenseNum;
        }
      }
  </code></pre>
  
  <p>Code from file CallDogLicense.java</p>
  
  <pre><code>    public class CallDogLicense {
        public static void main (String [] args) {
          DogLicense dog1 = new DogLicense();
  
          dog1.setYear(2014);
          dog1.createLicenseNum(777);
          System.out.println("Dog license: " + dog1.getLicenseNum());
  
          return;
        }
      }
  </code></pre>