The following text was written to the standard output stream when the WordList.java(arrayplay) 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=46089:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/dmitche7/IdeaProjects/CS1/out/production/CS1:/home/dmitche7/Desktop/SimplePainter.jar:/home/dmitche7/Desktop/SimpleComposer.jar:/home/dmitche7/Desktop/jfugue-4.0.3-with-musicxml.jar arrayplay.WordList
nThe original list of numbers ...
Red
Orange
Yellow
Green
Blue
Purple
Circle
Triangle
Square
Rectangle
>>> display
Red
Orange
Yellow
Green
Blue
Purple
Circle
Triangle
Square
Rectangle
>>> print
7
Circle
>>> swap 1 2
>>> display
Orange
Red
Yellow
Green
Blue
Purple
Circle
Triangle
Square
Rectangle
>>> add last
pentagon
>>> display
Orange
Red
Yellow
Green
Blue
Purple
Circle
Triangle
Square
Rectangle
pentagon
>>> help
HELP - display a menu of commands
DISPLAY - display the list of words
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
>>> exit