static long digitSum ( long n , long b ) {
  if ( n < b ) {
    return n ;
  }
  else {
    return ( n % b + digitSum ( n / b , b ) ) ;
  }
}

static long digitSum ( long n , long b ) { if ( n < b ) { return n ; } else { return ( n % b + digitSum ( n / b , b ) ) ; } }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (return_statement (identifier))) alternative: (block (return_statement (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (method_invocation name: (identifier) arguments: (argument_list (binary_expression left: (identifier) right: (identifier)) (identifier))))))))))