title: How to adding two method returns together
body: <p>Ok, So I have a method </p>
  
  <pre><code>public static int getTotalLegCountDog (ArrayList&lt;Dog&gt; dogList)
  {
  
      int temp = 0;
      for (int i = 0; i &lt; dogList.size(); i++)
      {
          temp = dogList.get(i).getNumLegs();
          totalLegsDogs += temp;
      }
      return totalLegsDogs;
  }
  </code></pre>
  
  <p>It adds up the total legs of dogs and returns them as totalLegsDogs and there is another that totals the legs for cats.</p>
  
  <p>Now I'd like a method that would take both the returned totalLegsDogs and returned totalLegsCats and add them together. My try is below (It returns 0), any help would be great!</p>
  
  <pre><code>public int getTotalLegCount ()
  {
      totalLegs = totalLegsDogs + totalLegsCats;
      return totalLegs;
  }
  </code></pre>