static void rotate ( int arr [ ] , int k ) {
  int temp [ ] = new int [ arr . length ] ;
  System . arraycopy ( arr , arr . length - k , temp , 0 , k ) ;
  System . arraycopy ( arr , 0 , temp , k , arr . length - k ) ;
  pa ( temp ) ;
}

static void rotate ( int arr [ ] , int k ) { int temp [ ] = new int [ arr . length ] ; System . arraycopy ( arr , arr . length - k , temp , 0 , k ) ; System . arraycopy ( arr , 0 , temp , k , arr . length - k ) ; pa ( temp ) ; }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (integral_type) name: (identifier) dimensions: (dimensions)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (field_access object: (identifier) field: (identifier)))))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (identifier)) (identifier) (decimal_integer_literal) (identifier)))) (expression_statement (method_invocation object: (identifier) name: (identifier) arguments: (argument_list (identifier) (decimal_integer_literal) (identifier) (identifier) (binary_expression left: (field_access object: (identifier) field: (identifier)) right: (identifier))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))