The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.
The original list of words ... Dirty Fly Money Brother Little Happy Silly Energy Basic Open Close Jump >>> display Dirty Fly Money Brother Little Happy Silly Energy Basic Open Close Jump >>> 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 >>> print first Dirty >>> print last Jump >>> print 6 Happy >>> swap 4 6 >>> display Dirty Fly Money Happy Little Brother Silly Energy Basic Open Close Jump >>> add first tree >>> display tree Dirty Fly Money Happy Little Brother Silly Energy Basic Open Close Jump >>> display last lovely tree Dirty Fly Money Happy Little Brother Silly Energy Basic Open Close Jump >>> ### Unrecognizable command: last >>> ### Unrecognizable command: lovely >>> add last lovely >>> display tree Dirty Fly Money Happy Little Brother Silly Energy Basic Open Close Jump lovely >>> exit Process finished with exit code 0