The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.
/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -javaagent:/opt/intellij-idea-community/lib/idea_rt.jar=39935:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/rnewell2/IdeaProjects/CS1/out/production/CS1:/home/rnewell2/SimplePainter.jar:/home/rnewell2/SimpleComposer.jar:/home/rnewell2/jfugue-4.0.3-with-musicxml.jar arraylistplay.WordList >>> print 5 rat >>> add last dog >>> display dog cat fish mouse rat bird chicken goat rabbit hamster gerbil snake spider dog >>> add first cat >>> display cat cat fish mouse rat bird chicken goat rabbit hamster gerbil snake spider dog >>> swap 4 6 >>> display cat cat fish bird rat mouse chicken goat rabbit hamster gerbil snake spider dog >>> 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 >>> shownumbers ### Unrecognizable command: shownumbers >>> exit Process finished with exit code 0