public static void main ( String [ ] args ) {
  Node head = null ;
  head = push ( head , 'e' ) ;
  head = push ( head , 'd' ) ;
  head = push ( head , 'c' ) ;
  head = push ( head , 'b' ) ;
  head = push ( head , 'a' ) ;
  int N = 2 ;
  int sz = size ( head ) ;
  System . out . println ( "Given Doubly linked list " ) ;
  printList ( head ) ;
  head = rotate ( head , N , sz ) ;
  System . out . println ( "\nRotated Linked list clockwise " ) ;
  printList ( head ) ;
}

public static void main ( String [ ] args ) { Node head = null ; head = push ( head , ' e ' ) ; head = push ( head , ' d ' ) ; head = push ( head , ' c ' ) ; head = push ( head , ' b ' ) ; head = push ( head , ' a ' ) ; int N = 2 ; int sz = size ( head ) ; System . out . println ( " Given ▁ Doubly ▁ linked ▁ list ▁ " ) ; printList ( head ) ; head = rotate ( head , N , sz ) ; System . out . println ( " \n Rotated ▁ Linked ▁ list ▁ clockwise ▁ " ) ; printList ( head ) ; }
(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: (type_identifier) declarator: (variable_declarator name: (identifier) value: (null_literal))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (character_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (character_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (character_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (character_literal))))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (character_literal))))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (decimal_integer_literal))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (method_invocation name: (identifier) arguments: (argument_list (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)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier) (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))))))