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=36183:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/smorgan4/IdeaProjects/CS1/out/production/CS1:/home/smorgan4/SimplePainter.jar:/home/smorgan4/SimpleComposer.jar:/home/smorgan4/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
11
1
3
5
7
17
25
15
10
34
2
>>> print first
11
>>> print last
2
>>> swap 10 2 
>>> display
11
34
3
5
7
17
25
15
10
1
2
>>> add first 100
>>> add last 300
>>> display
100
11
34
3
5
7
17
25
15
10
1
2
300
>>>