public static int getGcd ( int num1 , int num2 ) {
  if ( num2 == 0 ) {
    return num1 ;
  }
  else {
    return getGcd ( num2 , num1 % num2 ) ;
  }
}

public static int getGcd ( int num1 , int num2 ) { if ( num2 == 0 ) { return num1 ; } else { return getGcd ( num2 , num1 % num2 ) ; } }
(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: (decimal_integer_literal))) consequence: (block (return_statement (identifier))) alternative: (block (return_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (identifier)))))))))