static void printList ( Node head ) {
  Node temp = head ;
  if ( head != null ) {
    do {
      System . out . printf ( "%d " , temp . data ) ;
      temp = temp . next ;
    }
    while ( temp != head ) ;
  }
}

static void printList ( Node head ) { Node temp = head ; if ( head != null ) { do { System . out . printf ( " % d ▁ " , temp . data ) ; temp = temp . next ; } while ( temp != head ) ; } }
(method_declaration (modifiers) type: (void_type) name: (identifier) parameters: (formal_parameters (formal_parameter type: (type_identifier) name: (identifier))) body: (block (local_variable_declaration type: (type_identifier) declarator: (variable_declarator name: (identifier) value: (identifier))) (if_statement condition: (parenthesized_expression (binary_expression left: (identifier) right: (null_literal))) consequence: (block (do_statement body: (block (expression_statement (method_invocation object: (field_access object: (identifier) field: (identifier)) name: (identifier) arguments: (argument_list (string_literal) (field_access object: (identifier) field: (identifier))))) (expression_statement (assignment_expression left: (identifier) right: (field_access object: (identifier) field: (identifier))))) condition: (parenthesized_expression (binary_expression left: (identifier) right: (identifier))))))))