public static int sumDigits (int n) {
if(n < 10)
return n;
else
return n%10 + sumDigits (n/10);
}
This method is used to calculate the sum of the digits in a number recursively, but I do not understand it? What is the purpose of n%10???