CS1 Standard Demo Page

The following text was written to the standard output stream when the WordList 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=35733:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/kgargui2/IdeaProjects/CS1/out/production/CS1:/home/kgargui2/SimplePainter.jar:/home/kgargui2/SimpleComposer.jar:/home/kgargui2/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
the
on
some
time
funny
not
bright
summer
sun
vacation
math
school
home
mom
music
bed
relax
beach
ball
computer
>>> print first
the
>>> print last
computer
>>> print 3
some
>>> print 18
beach
>>> swap 5 7
>>> display
the
on
some
time
bright
not
funny
summer
sun
vacation
math
school
home
mom
music
bed
relax
beach
ball
computer
>>> swap 1 18
>>> display
beach
on
some
time
bright
not
funny
summer
sun
vacation
math
school
home
mom
music
bed
relax
the
ball
computer
>>> 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
>>> add first hi
>>> add last bye
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
hi
beach
on
some
time
bright
not
funny
summer
sun
vacation
math
school
home
mom
music
bed
relax
the
ball
computer
bye
>>> exit

Process finished with exit code 0