The following text was written to the standard output stream when the NumberList.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=42333:/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.NumberList
nThe original list of numbers ...
2
3
5
7
11
13
17
19
23
29
>>> display
2
3
5
7
11
13
17
19
23
29
>>> print
7
17
>>> swap 1 2
>>> display
3
2
5
7
11
13
17
19
23
29
>>> add last
31
>>> display
3
2
5
7
11
13
17
19
23
29
31
>>> 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
>>> exit