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=39219:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/jbouldin/IdeaProjects/CS1/out/production/CS1:/home/jbouldin/Desktop/SimplePainter.jar:/home/jbouldin/Desktop/SimpleComposer.jar:/home/jbouldin/Desktop/jfugue-4.0.3-with-musicxml.jar arraylistplay.WordList >>> help HELP - display a menu of commands DISPLAY - display the list of numbers PRINT - print a number (FIRST;LAST;nth) SWAP - exchange two elements (nth;mth) ADD - add a number to the list (FIRST;LAST) EXIT - terminate execution of the program >>> display Potato Chip Barbecue Lays Sour Cream Salt Vinegar Big Bag Small Chips >>> print first Potato >>> print 4 Lays >>> swap 5 7 >>> display Potato Chip Barbecue Lays Salt Cream Sour Vinegar Big Bag Small Chips >>> add first pickles >>> add last beans >>> display pickles Potato Potato Chip Chip Barbecue Barbecue Lays Lays Salt Salt Cream Cream beans >>> exit Process finished with exit code 0