static String removeDups ( String str ) {
  char temp [ ] = str . toCharArray ( ) ;
  Arrays . sort ( temp ) ;
  str = new String ( temp ) ;
  return removeDupsSorted ( str ) ;
}

static String removeDups ( String str ) { char temp [ ] = str . toCharArray ( ) ; Arrays . sort ( temp ) ; str = new String ( temp ) ; return removeDupsSorted ( str ) ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) 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)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (return_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))