static char [ ] makeEven ( String string ) {
  char [ ] str = string . toCharArray ( ) ;
  int n = str . length ;
  int even = Integer . MAX_VALUE , index = 0 ;
  for ( int i = 0 ;
  i < n - 1 ;
  i ++ ) {
    if ( ( str [ i ] - '0' ) % 2 == 0 ) {
      even = ( str [ i ] - '0' ) ;
      index = i ;
    }
    if ( even <= ( str [ n - 1 ] - '0' ) ) {
      break ;
    }
  }
  if ( even == Integer . MAX_VALUE ) {
    return str ;
  }
  swap ( str , index , n - 1 ) ;
  return str ;
}

static char [ ] makeEven ( String string ) { char [ ] str = string . toCharArray ( ) ; int n = str . length ; int even = Integer . MAX_VALUE , index = 0 ; for ( int i = 0 ; i < n - 1 ; i ++ ) { if ( ( str [ i ] - '0' ) % 2 == 0 ) { even = ( str [ i ] - '0' ) ; index = i ; } if ( even <= ( str [ n - 1 ] - '0' ) ) { break ; } } if ( even == Integer . MAX_VALUE ) { return str ; } swap ( str , index , n - 1 ) ; return str ; }
(method_declaration (modifiers) type: (array_type element: (integral_type) dimensions: (dimensions)) 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: (method_invocation object: (identifier) name: (identifier) arguments: (argument_list)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (field_access object: (identifier) field: (identifier))) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (binary_expression left: (identifier) right: (decimal_integer_literal))) update: (update_expression (identifier)) body: (block (if_statement condition: (parenthesized_expression (binary_expression left: (binary_expression left: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))) right: (decimal_integer_literal)) right: (decimal_integer_literal))) consequence: (block (expression_statement (assignment_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (identifier)) right: (character_literal))))) (expression_statement (assignment_expression left: (identifier) right: (identifier))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (parenthesized_expression (binary_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (decimal_integer_literal))) right: (character_literal))))) consequence: (block (break_statement))))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier)))) consequence: (block (return_statement (identifier)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier) (binary_expression left: (identifier) right: (decimal_integer_literal))))) (return_statement (identifier))))