[burt@lee ll3]$ cat test_4.txt | java ReverseListTest
insertAtTail: first word
printList:
first word

insertAtHead: -second word
printList:
-second word
first word

insertAtTail: third word
printList:
-second word
first word
third word

insertAtHead: -fourth word
printList:
-fourth word
-second word
first word
third word

insertAtTail: and so on
printList:
-fourth word
-second word
first word
third word
and so on

reverseList:
and so on
third word
first word
-second word
-fourth word
[burt@lee ll3]$