public static int calcGCD ( int x , int y ) {
  if ( x == 0 ) {
    return y ;
  }
  else if ( y == 0 ) {
    return x ;
  }
  else {
    if ( x >= y ) {
      return calcGCD ( x % y , y ) ;
    }
    else {
      return calcGCD ( y % x , x ) ;
    }
  }
}

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