public static void main ( String [ ] args ) {
  push ( 'e' ) ;
  push ( 'd' ) ;
  push ( 'c' ) ;
  push ( 'b' ) ;
  push ( 'a' ) ;
  int N = 2 ;
  System . out . println ( "Given linked list " ) ;
  printList ( head ) ;
  rotate ( N ) ;
  System . out . println ( ) ;
  System . out . println ( "Rotated Linked list " ) ;
  printList ( head ) ;
}

public static void main ( String [ ] args ) { push ( ' e ' ) ; push ( ' d ' ) ; push ( ' c ' ) ; push ( ' b ' ) ; push ( ' a ' ) ; int N = 2 ; System . out . println ( " Given ▁ linked ▁ list ▁ " ) ; printList ( head ) ; rotate ( N ) ; System . out . println ( ) ; System . out . println ( " Rotated ▁ Linked ▁ list ▁ " ) ; 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 (expression_statement (method_invocation name: (identifier) arguments: (argument_list (character_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (character_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (character_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (character_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (character_literal)))) (local_variable_declaration type: (integral_type) declarator: (variable_declarator name: (identifier) value: (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)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier)))) (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list))) (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))))))