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 numbers PRINT - print a number (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a number to the list (FIRST;LAST) EXIT - terminate execution of the program >>> display yes no cat stairs floor dog hall roof monitor carpet check scale >>> print 1 yes >>> print 2 no >>> swap 1 2 >>> print 1 no >>> print 2 yes >>>