public static String reverse ( String s ) {
  char [ ] ch = new char [ 10 ] ;
  char [ ] ch1 = new char [ 10 ] ;
  ch = s . toCharArray ( ) ;
  for ( int i = 0 ;
  i < s . length ( ) ;
  ++ i ) ch1 [ i ] = ch [ s . length ( ) - 1 - i ] ;
  s = new String ( ch1 ) ;
  return s ;
}

public static String reverse ( String s ) { char [ ] ch = new char [ 10 ] ; char [ ] ch1 = new char [ 10 ] ; ch = s . toCharArray ( ) ; for ( int i = 0 ; i < s . length ( ) ; ++ i ) ch1 [ i ] = ch [ s . length ( ) - 1 - i ] ; s = new String ( ch1 ) ; return s ; }
(method_declaration (modifiers) type: (type_identifier) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (decimal_integer_literal))))) (local_variable_declaration type: (array_type element: (integral_type) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (decimal_integer_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list))) update: (update_expression (identifier)) body: (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (binary_expression left: (binary_expression left: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)) right: (decimal_integer_literal)) right: (identifier)))))) (expression_statement (assignment_expression left: (identifier) right: (object_creation_expression type: (type_identifier) arguments: (argument_list (identifier))))) (return_statement (identifier))))