private static long sumDigitsInBase ( long base , long number ) {
  if ( base > number ) {
    return number ;
  }
  long sum = sumDigitsInBase ( base , number / base ) ;
  return sum + ( number % base ) ;
}

private static long sumDigitsInBase ( long base , long number ) { if ( base > number ) { return number ; } long sum = sumDigitsInBase ( base , number / base ) ; return sum + ( number % base ) ; }
(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)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)))))) (return_statement (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (identifier) right: (identifier)))))))