static int getProduct ( int n ) {
  int maxOdd = largestOddDigit ( n ) ;
  if ( maxOdd == - 1 ) return - 1 ;
  return ( n * maxOdd ) ;
}

static int getProduct ( int n ) { int maxOdd = largestOddDigit ( n ) ; if ( maxOdd == - 1 ) return - 1 ; return ( n * maxOdd ) ; }
(method_declaration (modifiers) type: (integral_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (unary_expression operand: (decimal_integer_literal)))) consequence: (return_statement (unary_expression operand: (decimal_integer_literal)))) (return_statement (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))