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 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 15 Travel >>> swap 3 15 >>> swap 2 8 >>> display Apple Board Travel Robots Artificial Pumpkin Santa Pickle Dancing Wink Phone Love Sky Ocean Dimension >>> swap 5 11 >>> display Apple Board Travel Robots Phone Pumpkin Santa Pickle Dancing Wink Artificial Love Sky Ocean Dimension >>> 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 >>> shownumbers ### Unrecognizable command: shownumbers >>> add first Queen >>> add last FreddieMercury >>> display Queen Apple Board Travel Robots Phone Pumpkin Santa Pickle Dancing Wink Artificial Love Sky Ocean Dimension FreddieMercury >>> shownumbers ### Unrecognizable command: shownumbers >>> display Queen Apple Board Travel Robots Phone Pumpkin Santa Pickle Dancing Wink Artificial Love Sky Ocean Dimension FreddieMercury >>> exit BUILD SUCCESSFUL (total time: 1 minute 54 seconds)