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