public static void main ( String [ ] args ) {
  int original_arr [ ] = {
    1 , 2 , 3 , 4 , 5 };
    int len = original_arr . length ;
    int copied_arr [ ] = new int [ len ] , i , j ;
    for ( i = 0 ;
    i < len ;
    i ++ ) {
      copied_arr [ i ] = original_arr [ len - i - 1 ] ;
    }
    System . out . printf ( "\nOriginal array: " ) ;
    printArray ( original_arr , len ) ;
    System . out . printf ( "\nResultant array: " ) ;
    printArray ( copied_arr , len ) ;
  }
  
public static void main ( String [ ] args ) { int original_arr [ ] = { 1 , 2 , 3 , 4 , 5 } ; int len = original_arr . length ; int copied_arr [ ] = new int [ len ] , i , j ; for ( i = 0 ; i < len ; i ++ ) { copied_arr [ i ] = original_arr [ len - i - 1 ] ; } System . out . printf ( " \n Original ▁ array : ▁ " ) ; printArray ( original_arr , len ) ; System . out . printf ( " \n Resultant ▁ array : ▁ " ) ; printArray ( copied_arr , len ) ; }
(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: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_initializer (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal) (decimal_integer_literal)))) (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) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier)))) declarator: (variable_declarator name: (identifier)) declarator: (variable_declarator name: (identifier))) (for_statement init: (assignment_expression left: (identifier) right: (decimal_integer_literal)) condition: (binary_expression left: (identifier) right: (identifier)) update: (update_expression (identifier)) body: (block (expression_statement (assignment_expression left: (array_access array: (identifier) index: (identifier)) right: (array_access array: (identifier) index: (binary_expression left: (binary_expression left: (identifier) right: (identifier)) right: (decimal_integer_literal))))))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier) (identifier))))))