The following text was written to the standard output stream when the WordListDemo program was executed from Netbeans.
run: >>> display Dancing Bears Painted Wings Things I Almost Remember And O Song Someone Sings Once Upon A December >>> help HELP - display a menu of commands DISPLAY - display the list of numbers PRINT - print a number (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a number to the list (FIRST;LAST) EXIT - terminate execution of the program >>> swap 4 5 >>> display Dancing Bears Painted Things Wings I Almost Remember And O Song Someone Sings Once Upon A December >>>