static long getLCM ( int a , int b ) {
  int bigger = 0 , smaller = 0 ;
  if ( a > b ) {
    bigger = a ;
    smaller = b ;
  }
  else {
    bigger = b ;
    smaller = a ;
  }
  if ( bigger % smaller == 0 ) return bigger ;
  long counter = 2 ;
  long num = bigger ;
  while ( num < Integer . MAX_VALUE ) {
    if ( ( num * counter ) % smaller == 0 ) {
      return num * counter ;
    }
    counter ++ ;
  }
  return ( long ) a * b ;
}

static long getLCM ( int a , int b ) { int bigger = 0 , smaller = 0 ; if ( a > b ) { bigger = a ; smaller = b ; } else { bigger = b ; smaller = a ; } if ( bigger % smaller == 0 ) return bigger ; long counter = 2 ; long num = bigger ; while ( num < Integer . MAX_VALUE ) { if ( ( num * counter ) % smaller == 0 ) { return num * counter ; } counter ++ ; } return ( long ) a * 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: (decimal_integer_literal)) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier)))) alternative: (block (expression_statement (assignment_expression left: (identifier) right: (identifier))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (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: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (identifier))) (while_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier)) right: (decimal_integer_literal))) consequence: (block (return_statement (binary_expression left: (identifier) right: (identifier))))) (expression_statement (update_expression (identifier))))) (return_statement (binary_expression left: (cast_expression type: (integral_type) value: (identifier)) right: (identifier)))))