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 payment rung mechanical detail blue influence foreigner age basic install >>> print first payment >>> print last install >>> print 3 mechanical >>> print 10 install >>> swap 5 7 >>> display payment rung mechanical detail foreigner influence blue age basic install >>> swap 1 10 >>> display install rung mechanical detail foreigner influence blue age basic payment >>> 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 >>> add first 100 >>> add last 200 >>> showwords ### Unrecognizable command: showwords >>> display 100 install rung mechanical detail foreigner influence blue age basic payment 200 >>> exit