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 >>> add first www >>> add first qqq >>> display qqq www k o k o a u n g a n d j a v a >>> add last eee >>> print last eee >>> swap 1 17 >>> display a www k o k o a u n g a n d j a v qqq eee >>> exit