CS1 Standard Demo Page

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=34385:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/smorgan4/IdeaProjects/CS1/out/production/CS1:/home/smorgan4/SimplePainter.jar:/home/smorgan4/SimpleComposer.jar:/home/smorgan4/jfugue-4.0.3-with-musicxml.jar arrayplay.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
hi
they
man
woman
put
softball
dog
cat
mother
father
play
fun
>>> print first
hi
>>> print last
fun
>>> swap 1 2
>>> display
they
hi
man
woman
put
softball
dog
cat
mother
father
play
fun
>>> add first sky
>>> add last night
>>> display
 sky
they
hi
man
woman
put
softball
dog
cat
mother
father
play
fun
 night
>>>