[burt@lee ll3]$ cat test_2.txt | java ReverseListTest insertAtTail: first line printList: first line insertAtTail: second line printList: first line second line insertAtTail: third line printList: first line second line third line reverseList: third line second line first line [burt@lee ll3]$