The following text was written to the standard output stream when the WordList 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 ball young dog cat throw catch oswego down hello need brown cancel town >>> print 7 oswego >>> swap 9 4 >>> display ball young dog hello throw catch oswego down cat need brown cancel town >>> add last walk >>> display ball young dog hello throw catch oswego down cat need brown cancel town walk >>> exit