CS1 Standard Demo Page

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=39859:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/mmeyer4/IdeaProjects/CS1/out/production/CS1:/home/mmeyer4/SimplePainter.jar:/home/mmeyer4/SimpleComposer.jar:/home/mmeyer4/jfugue-4.0.3-with-musicxml.jar arrayplay.WordList
>>> help
HELP - display a menu of commands
DISPLAY - display the list of words
PRINT - print a word (FIRST;LAST;nth)
SWAP - exchange two elements (nth;mth)
ADD - add a word to the list (FIRST;LAST)
EXIT - terminate execution of the program
>>> display
one
two
three
four
five
six
seven
eight
nine
ten
>>> print 1
one
>>> print 10
ten
>>> removeword
### Unrecognizable command: removeword
>>> help
HELP - display a menu of commands
DISPLAY - display the list of words
PRINT - print a word (FIRST;LAST;nth)
SWAP - exchange two elements (nth;mth)
ADD - add a word to the list (FIRST;LAST)
EXIT - terminate execution of the program
>>> swap 1 10
>>> add first hi
>>> add last bye
>>> display
hi
ten
two
three
four
five
six
seven
eight
nine
one
bye
>>> exit

Process finished with exit code 0