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=37499:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/dmorgia2/IdeaProjects/CS1/out/production/CS1:/home/dmorgia2/SimplePainter.jar:/home/dmorgia2/SimpleComposer.jar:/home/dmorgia2/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
7
17
27
37
47
57
67
77
4
8
11
13
92
>>> print first
7
>>> print last
92
>>> print 8
77
>>> print 13
92
>>> swap 5 8
>>> display
7
17
27
37
77
57
67
47
4
8
11
13
92
>>> swap 1 13
>>> display
92
17
27
37
77
57
67
47
4
8
11
13
7
>>> 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 19
>>> add last 74
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
19
92
17
27
37
77
57
67
47
4
8
11
13
7
74
>>> exit

Process finished with exit code 0