public static long GCD ( long A , long B ) {
  long a = Math . max ( A , B ) ;
  long b = Math . min ( A , B ) ;
  while ( true ) {
    if ( a % b == 0 ) return b ;
    long temp = a ;
    a = b ;
    b = temp % b ;
  }
}

public static long GCD ( long A , long B ) { long a = Math . max ( A , B ) ; long b = Math . min ( A , B ) ; while ( true ) { if ( a % b == 0 ) return b ; long temp = a ; a = b ; b = temp % 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 (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))) (while_statement condition: (parenthesized_expression (true)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))) consequence: (return_statement (identifier))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (binary_expression left: (identifier) right: (identifier))))))))