public static void main ( String [ ] args ) {
  push ( 5 ) ;
  push ( 4 ) ;
  push ( 3 ) ;
  push ( 2 ) ;
  push ( 1 ) ;
  head = reverseList ( head ) ;
  printList ( head ) ;
}

public static void main ( String [ ] args ) { push ( 5 ) ; push ( 4 ) ; push ( 3 ) ; push ( 2 ) ; push ( 1 ) ; head = reverseList ( head ) ; 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 (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (decimal_integer_literal)))) (expression_statement (assignment_expression left: (identifier) right: (method_invocation name: (identifier) arguments: (argument_list (identifier))))) (expression_statement (method_invocation name: (identifier) arguments: (argument_list (identifier))))))