The following text was written to the standard output stream when the WordList.java program was executed from Netbeans.
The original list of words ... Apple Pickle Dimension Robots Artificial Pumpkin Santa Board Dancing Wink Phone Love Sky Ocean Travel >>> help\ ### Unrecognizable command: help\ >>> help HELP - display a menu of commands DISPLAY - display the list of words PRINT - print a word (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a word to the list (FIRST;LAST) EXIT - terminate execution of the program >>> display Apple Pickle Dimension Robots Artificial Pumpkin Santa Board Dancing Wink Phone Love Sky Ocean Travel >>> print first Apple >>> print last Travel >>> print 3 Dimension >>> print 14 Ocean >>> swap 5 7 >>> display Apple Pickle Dimension Robots Santa Pumpkin Artificial Board Dancing Wink Phone Love Sky Ocean Travel >>> swap 1 15 >>> display Travel Pickle Dimension Robots Santa Pumpkin Artificial Board Dancing Wink Phone Love Sky Ocean Apple >>> help HELP - display a menu of commands DISPLAY - display the list of words PRINT - print a word (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a word to the list (FIRST;LAST) EXIT - terminate execution of the program >>> add first Royal >>> add last Running >>> display Royal Travel Pickle Dimension Robots Santa Pumpkin Artificial Board Dancing Wink Phone Love Sky Ocean Apple Running >>> exit BUILD SUCCESSFUL (total time: 1 minute 20 seconds)