The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.
nThe original list of words ... hello I hope this program works it was kind of confusing but that's fine >>> 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 >>> swap 1 2 >>> display I hello hope this program works it was kind of confusing but that's fine >>> print last fine >>> add last snoop >>> display I hello hope this program works it was kind of confusing but that's fine snoop >>> exit