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=34683:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/jchimbo/IdeaProjects/CS1/out/production/CS1:/home/jchimbo/Downloads/jfugue-4.0.3-with-musicxml.jar:/home/jchimbo/Downloads/SimpleComposer.jar:/home/jchimbo/Downloads/SimplePainter.jar arrayplay.WordList
>>> Diaplay
### Unrecognizable command: Diaplay
>>> dispaly
### Unrecognizable command: dispaly
>>> display
psychotic
cows
vein
partake
volatile
overjoyed
gain
leaf
evasive
loss
distance
savor
gold
icy
yawn
>>> add first word1
>>> add last word2
>>> Display
word1
psychotic
cows
vein
partake
volatile
overjoyed
gain
leaf
evasive
loss
distance
savor
gold
icy
yawn
word2
>>> swap 5 6
>>> Display
word1
psychotic
cows
vein
volatile
partake
overjoyed
gain
leaf
evasive
loss
distance
savor
gold
icy
yawn
word2
>>> print 1
word1
>>> 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
>>>