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 apple pear peach blueberry orange pumpkin corn squash cucumber tomato potato >>> print first apple >>> print last potato >>> swap 1 4 >>> display blueberry pear peach apple orange pumpkin corn squash cucumber tomato potato >>> add first pickle >>> display pickle blueberry pear peach apple orange pumpkin corn squash cucumber tomato potato >>> exit