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 4 cat >>> swap 8 10 >>> display ball young dog cat throw catch oswego need hello down brown cancel town >>> add last over >>> display ball young dog cat throw catch oswego need hello down brown cancel town over >>> exit