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=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