public static void main ( String [ ] args ) {
  Integer [ ] temp = {
    9 , 8 , 3 , 5 , 7 };
    Vector < Integer > arr = new Vector < > ( Arrays . asList ( temp ) ) ;
    int result1 = findMaxXOR ( arr , 5 ) ;
    Collections . reverse ( arr ) ;
    int result2 = findMaxXOR ( arr , 5 ) ;
    System . out . print ( Math . max ( result1 , result2 ) ) ;
  }
  
public static void main ( String [ ] args ) { Integer [ ] temp = { 9 , 8 , 3 , 5 , 7 } ; Vector < Integer > arr = new Vector < > ( Arrays . asList ( temp ) ) ; int result1 = findMaxXOR ( arr , 5 ) ; Collections . reverse ( arr ) ; int result2 = findMaxXOR ( arr , 5 ) ; System . out . print ( Math . max ( result1 , result2 ) ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (array_type element: (type_identifier) dimensions: (dimensions)) name: (identifier))) body: (block (local_variable_declaration type: (array_type element: (type_identifier) dimensions: (dimensions)) declarator: (variable_declarator name: (identifier) value: (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)))) (local_variable_declaration type: (generic_type (type_identifier) (type_arguments (type_identifier))) declarator: (variable_declarator name: (identifier) value: (object_creation_expression type: (generic_type (type_identifier) (type_arguments)) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier))))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (identifier))))))))