public static void rotate ( char chrs [ ] , int startIndex , int endIndex , int shiftOffset ) {
  int length = ( endIndex - startIndex ) + 1 ;
  char aux [ ] = new char [ length ] ;
  for ( int i = 0 ;
  i < aux . length ;
  ++ i ) aux [ i ] = chrs [ startIndex + i ] ;
  for ( int i = 0 ;
  i < aux . length ;
  ++ i ) {
    int newLocalIndex = ( i + shiftOffset ) % length ;
    chrs [ newLocalIndex + startIndex ] = aux [ i ] ;
  }
}

public static void rotate ( char chrs [ ] , int startIndex , int endIndex , int shiftOffset ) { int length = ( endIndex - startIndex ) + 1 ; char aux [ ] = new char [ length ] ; for ( int i = 0 ; i < aux . length ; ++ i ) aux [ i ] = chrs [ startIndex + i ] ; for ( int i = 0 ; i < aux . length ; ++ i ) { int newLocalIndex = ( i + shiftOffset ) % length ; chrs [ newLocalIndex + startIndex ] = aux [ i ] ; } }
(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)) (formal_parameter type: (integral_type) name: (identifier)) (formal_parameter type: (integral_type) name: (identifier))) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (decimal_integer_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) dimensions: (dimensions) value: (array_creation_expression type: (integral_type) dimensions: (dimensions_expr (identifier))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) 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: (identifier) right: (identifier)))))) (for_statement init: (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) condition: (binary_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))) update: (update_expression (identifier)) body: (block (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (binary_expression left: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))) right: (identifier)))) (expression_statement (assignment_expression left: (array_access array: (identifier) index: (binary_expression left: (identifier) right: (identifier))) right: (array_access array: (identifier) index: (identifier))))))))