The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.
nThe original list of words ... peace love joy bliss sunshine beauty serenity travel lakeshore imagination kindness conscientiousness empathy generosity thoughtful >>> 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 peace love joy bliss sunshine beauty serenity travel lakeshore imagination kindness conscientiousness empathy generosity thoughtful >>> print first peace >>> print last thoughtful >>> print 3 joy >>> print 15 thoughtful >>> swap 5 7 >>> display peace love joy bliss serenity beauty sunshine travel lakeshore imagination kindness conscientiousness empathy generosity thoughtful >>> swap 1 15 >>> display thoughtful love joy bliss serenity beauty sunshine travel lakeshore imagination kindness conscientiousness empathy generosity peace >>> 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 happiness >>> add last freedom showwords >>> ### Unrecognizable command: showwords >>> display happiness thoughtful love joy bliss serenity beauty sunshine travel lakeshore imagination kindness conscientiousness empathy generosity peace freedom >>> exit