title: Create a dog class and tester
body: <p>Hello I was asked to create the following:<br>
  Create a Dog class that keeps track of a dog's<br> </p>
  
  <ol>
  <li><p>name</p></li>
  <li><p>age</p></li>
  <li>Weight</li>
  </ol>
  
  <p>Have the following methods available to use:<br></p>
  
  <pre><code>1. getName(): String
  2. setName(String): void
  3. getAge():int
  4. getDogYears():int (assume 1 human year = 5 dog years)
  5. addAYear():void
  6. setAge(int):void
  7. getWeight(): double
  8. setWeight(double): void
  9. getDogData():String
  </code></pre>
  
  <p>Create a DogTester class to test each of the methods above</p>
  
  <p>I am following a template of this done before but I am getting confused, this is what I have so far
  Dog class:</p>
  
  <pre><code>public class Dog
  {
      //Instance vars
      private String name;
      private int age;
      private double weight;
  
      //constructor
      public Dog(String initName)
      {
          name = initName;
          age = 0;
          weight = 0;
      }
  
      //methods
      public String getName()
      {
          return name;
      }
  
      public void setName()
      {
          return name;
      }
  
      public int getAge()
      {
          return age;
      }
  
      public int getDogYears()
      {
          return age*5;
      }
  
      public void addAYear()
      {
          age = age + 1;
      }
  
      public void setAge()
      {
          return age;
      }
  
      public double getWeight()
      {
          return weight;
      }
  
      public void setWeight()
      {
          weight = weight;
      }
  
      public String getData()
      {
          String data = "";
          data = name;
          data = data + "\n\tAge: " + age;
          data = data + "\n\tWeight: " + weight;
  
  
          return data;
      }
  }
  </code></pre>
  
  <p>Tester:</p>
  
  <pre><code>import java.util.Scanner;
  
  public class DogTester
  {
      public static void main(String[] args)
      {
          Scanner in = new Scanner( System.in );
  
          //Create two dogs to keep track of
          Dog s1 = new Dog("Balto");
  
          //get the dogs age
          System.out.print("Enter the dog's age: "); //prompt
          double grade = in.nextDouble();             //read
          s1.addAge( years );                     //store
  
          //get the dogs weight
          System.out.print("Enter the dog's weight: "); //prompt
          s1.addWeight( in.nextDouble() );                //read AND store
  
          //output their data
          System.out.println( s1.getData() );
  
      }
  }
  </code></pre>
  
  <p>I am confused as what it would want from the public void constructors and also as to how to set up a tester for these</p>