The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.
>>> 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 phone computer music stranger code analogy program out in call enter shift >>> print first phone >>> print last shift >>> print 3 music >>> print 12 shift >>> swap 5 7 >>> display phone computer music stranger program analogy code out in call enter shift >>> swap 1 11 >>> display enter computer music stranger program analogy code out in call phone shift >>> 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 first >>> add last last >>> display first enter computer music stranger program analogy code out in call phone shift last >>> showwords ### Unrecognisable command: showwords >>> exit