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 words PRINT - print a word (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a word to the list (FIRST;LAST) EXIT - terminate execution of the program >>> Display Hood Warspite Renown Repulse Yorktown Saratoga Lexington Enterprise Okalahoma Nevada Pennsylvania Elizabeth Monarch Illustrious Formidable >>> print 12 Elizabeth >>> Print 3 Renown >>> Swap 3 12 >>> Display Hood Warspite Elizabeth Repulse Yorktown Saratoga Lexington Enterprise Okalahoma Nevada Pennsylvania Renown Monarch Illustrious Formidable >>> Add first Amazon >>> Add last Tennessee >>> display Amazon Hood Warspite Elizabeth Repulse Yorktown Saratoga Lexington Enterprise Okalahoma Nevada Pennsylvania Renown Monarch Illustrious Formidable Tennessee >>> exit