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=34263:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath "/home/akyaw/IdeaProjects/CS1/out/production/CS1:/home/akyaw/Downloads/Programming lab 2/SimplePainter.jar:/home/akyaw/Downloads/Programming lab 2/SimpleComposer.jar:/home/akyaw/Downloads/Programming lab 2/jfugue-4.0.3-with-musicxml.jar" arrayPlay.NumberList
>>> 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
9
54
46
51
32
23
4
11
22
64
94
99
15
33
45
>>> print first
9
>>> print last
45
>>> print 3
46
>>> print 15
45
>>> swap 5 7
>>> display
9
54
46
51
4
23
32
11
22
64
94
99
15
33
45
>>> swap 1 15
>>> display
45
54
46
51
4
23
32
11
22
64
94
99
15
33
9
>>> 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 100
>>> add last 200
>>> shownumbers
### Unregonizable Command: shownumbers
>>> display
100
45
54
46
51
4
23
32
11
22
64
94
99
15
33
9
200
>>> exit/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -javaagent:/opt/intellij-idea-community/lib/idea_rt.jar=38411:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath "/home/akyaw/IdeaProjects/CS1/out/production/CS1:/home/akyaw/Downloads/Programming lab 2/SimplePainter.jar:/home/akyaw/Downloads/Programming lab 2/SimpleComposer.jar:/home/akyaw/Downloads/Programming lab 2/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
slip
ants
banana
evaporate
random
list
package
problem
freshman
semester
upset
have
generate
words
green
>>> print first
slip
>>> print last
green
>>> print 3
banana
>>> print 15
green
>>> swap 5 7
>>> display
slip
ants
banana
evaporate
package
list
random
problem
freshman
semester
upset
have
generate
words
green
>>> swap 1 15
>>> display
green
ants
banana
evaporate
package
list
random
problem
freshman
semester
upset
have
generate
words
slip
>>> 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
>>> add first 100
>>> add last 200
>>> showwords
### Unregonizable Command: showwords
>>> display
100
green
ants
banana
evaporate
package
list
random
problem
freshman
semester
upset
have
generate
words
slip
200
>>> exit