The following text was written to the standard output stream when the WordList2.java program was executed from IntelliJ.
>>> help Help - Display a menu of commands DISPLAY - display the list of words PRINT - print a word (FIRST;LAST;nth SWAP - exchange two words (nth;mth ADD - add a word to the list (FIRST;LAST EXIT - terminate execution of the program >>> display Koda Echo Gay Dog Cat Me You They Them Hair Shirt Couch Cup >>> print first Koda >>> print last Cup >>> add first up >>> ### Unrecognizable command: up >>> add last down >>> add first hi display >>> display display hi Koda Echo Gay Dog Cat Me You They Them Hair Shirt Couch Cup down >>>