public static void swap ( char [ ] ar , int i , int j ) {
  char temp = ar [ j ] ;
  ar [ j ] = ar [ i ] ;
  ar [ i ] = temp ;
  System . out . println ( new String ( ar ) ) ;
}

public static void swap ( char [ ] ar , int i , int j ) { char temp = ar [ j ] ; ar [ j ] = ar [ i ] ; ar [ i ] = temp ; System . out . println ( new String ( ar ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (integral_type) dimensions: (dimensions)) 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) 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))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))))))