static String swap ( String arr , int i , int j ) {
  char temp [ ] = arr . toCharArray ( ) ;
  char c = temp [ i ] ;
  temp [ i ] = temp [ j ] ;
  temp [ j ] = c ;
  return String . valueOf ( temp ) ;
}

static String swap ( String arr , int i , int j ) { char temp [ ] = arr . toCharArray ( ) ; char c = temp [ i ] ; temp [ i ] = temp [ j ] ; temp [ j ] = c ; return String . valueOf ( temp ) ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier)) (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) dimensions: (dimensions) value: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (array_access array: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (identifier))) (return_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))