The following text was written to the standard output stream when the WordList2.java program was executed from IntelliJ.
>>> display dog cat beaver hamster sloth elephant cow pig parrot dolphin frog lion rabbit crocodile worm >>> add last bat >>> print last bat >>> swap 8 9 >>> display dog cat beaver hamster sloth elephant cow parrot pig dolphin frog lion rabbit crocodile worm bat >>> 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 >>> exit Process finished with exit code 0