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=38265:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/msoe/IdeaProjects/CS1/out/production/CS1:/home/msoe/Documents/jfugue-4.0.3-with-musicxml.jar:/home/msoe/Documents/SimplePainter.jar:/home/msoe/Downloads/SimpleComposer.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
HELP - terminate execution of the program
>>> display
35
51
42
97
2
15
98
73
62
78
9
10
54
25
28
>>> print first
35
>>> print last
28
>>> print 5
2
>>> print 11
9
>>> swap 5 11
>>> display
35
51
42
97
9
15
98
73
62
78
2
10
54
25
28
>>> 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
HELP - terminate execution of the program
>>> add first 100
>>> add last 200
>>> showNumbers
### Unrecognizable command: showNumbers
>>> display
100
35
51
42
97
9
15
98
73
62
78
2
10
54
25
28
200
>>> exist
### Unrecognizable command: exist
>>> exit

Process finished with exit code 0