The following text was written to the standard output stream when the WordListDemo.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 blue purple green red pink yellow orange cyan black white >>> print first blue >>> print last white >>> print 3 green >>> print 10 white >>> swap 5 7 >>> display blue purple green red orange yellow pink cyan black white >>> swap 1 18 >>> display null purple green red orange yellow pink cyan black white >>> 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 brown >>> display brown null purple green red orange yellow pink cyan black white >>> add last silver >>> display brown null purple green red orange yellow pink cyan black white silver >>> exit