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=44581:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/murman/IdeaProjects/CS1/out/production/CS1:/home/murman/Downloads/SimplePainter.jar:/home/murman/Downloads/SimpleComposer.jar:/home/murman/Downloads/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
1
50
8
97
46
83
36
5
74
21
68
43
8
>>> print first
1
>>> print last
8
>>> print 3
8
>>> print 10
21
>>> display
1
50
8
97
46
83
36
5
74
21
68
43
8
>>> swap 2 7
>>> display
1
36
8
97
46
83
50
5
74
21
68
43
8
>>> swap 1 9
>>> dirplay
### Unrecognizable command: dirplay
>>> display
74
36
8
97
46
83
50
5
1
21
68
43
8
>>> exit

Process finished with exit code 0