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 12 >>> display shift computer music stranger program analogy code out in call enter phone >>> 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 100 >>> add last 200 >>> showwords ### Unrecognisable command: showwords >>> display 100 shift computer music stranger program analogy code out in call enter phone 200 >>> exit