CS1 Standard Demo Page

The following text was written to the standard output stream when the TheWordList.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=41087:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/kscalzo/IdeaProjects/CS1/out/production/CS1:/home/kscalzo/Downloads/SimplePainter.jar:/home/kscalzo/Downloads/SimpleComposer.jar:/home/kscalzo/Downloads/jfugue-4.0.3-with-musicxml.jar arraylistplay.TheWordList
>>> 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
i
do
not
know
what
to
say
so
these
are
my
words
>>> print first
i
>>> print last
words
>>> print 3
not
>>> print 8
so
>>> swap 5 7
>>> display
i
do
not
know
say
to
what
so
these
are
my
words
>>> add first hi
>>> add last bye
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
hi
i
do
not
know
say
to
what
so
these
are
my
words
bye
>>> exit

Process finished with exit code 0