static void modInverse ( int a , int m ) {
  int g = gcd ( a , m ) ;
  if ( g != 1 ) System . out . println ( "Inverse doesn't exist" ) ;
  else {
    System . out . println ( "Modular multiplicative inverse is " + power ( a , m - 2 , m ) ) ;
  }
}

static void modInverse ( int a , int m ) { int g = gcd ( a , m ) ; if ( g != 1 ) System . out . println ( " Inverse ▁ doesn ' t ▁ exist " ) ; else { System . out . println ( " Modular ▁ multiplicative ▁ inverse ▁ is ▁ " + power ( a , m - 2 , m ) ) ; } }
(method_declaration (modifiers) type: (void_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 name: (identifier) arguments: (argument_list (identifier) (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (decimal_integer_literal))) consequence: (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) alternative: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (binary_expression left: (string_literal) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal)) (identifier)))))))))))