Return this number if it is a single digit , otherwise , return the sum of the two digits
public static int getDigit ( int number ) { if ( number < 9 ) return number ; return number / 10 + number % 10 ; }