title: Java Basic class use
body: <p>Assignment: </p>
  
  <p>Print <code>person1</code>'s kids, apply the <code>incNumKids()</code> method, and print again, outputting text as below. End each line with newline.   </p>
  
  <p>Sample output for below program:</p>
  
  <pre><code>Kids: 3
  New baby, kids now: 4
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>// ===== Code from file PersonInfo.java =====
  public class PersonInfo {
      private int numKids;
  
      public void setNumKids(int personsKids) {
          numKids = personsKids;
          return;
      }
  
      public void incNumKids() {
          numKids = numKids + 1;
          return;
      }
  
      public int getNumKids() {
          return numKids;
      }
  }
  // ===== end =====
  </code></pre>
  
  <p></p>
  
  <pre><code>// ===== Code from file CallPersonInfo.java =====
  public class CallPersonInfo {
      public static void main (String [] args) {
          PersonInfo person1 = new PersonInfo();
  
          person1.setNumKids(3);
  
          /* Your solution goes here  */
          System.out.println("Kids: " + person1.getNumKids());
          System.out.println("New baby, kids now: " + person1.getincNumKids());
          return;
  </code></pre>
  
  <p>Problem:</p>
  
  <p>I'm having trouble incrementing and including the <code>incNumKids()</code> method, and print again</p>