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 one two cat kitty fudge santaclaw corona extra checkmate love hate evil Lucifer doggy Stella >>> print first one >>> print last Stella >>> print 3 cat >>> swap 6 2 >>> display one two corona kitty fudge santaclaw cat extra checkmate love hate evil Lucifer doggy Stella >>> add first KIASDA >>> add last AWFAa >>> display KIASDA one two corona kitty fudge santaclaw cat extra checkmate love hate evil Lucifer doggy Stella AWFAa >>> exit