title: How to write a recursive method to return the sum of digits in an int?
body: <p>So this is my code so far.</p>
  
  <pre><code>    public int getsum (int n){
          int num = 23456;
          int total = 0;
          while (num != 0) {
              total += num % 10;
              num /= 10;
          }
      } 
  </code></pre>
  
  <p>The problem is that i cant/know how to change this into a recursive method
  Im kind of new with recursion and i need some help on implementing this method to change it so its recursive.</p>