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=34467:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/jbouldin/IdeaProjects/CS1/out/production/CS1:/home/jbouldin/Desktop/SimplePainter.jar:/home/jbouldin/Desktop/SimpleComposer.jar:/home/jbouldin/Desktop/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
2
5
8
6
4
2
31
15
16
89
85
64
74
>>> print first
2
>>> print last
74
>>>  print 3
8
>>> swap 5 7
>>> display'
### Unrecognizable command: display'
>>> display
2
5
8
6
31
2
4
15
16
89
85
64
74
>>> add first 100
>>> display
100
2
5
8
6
31
2
4
15
16
89
85
64
74
>>> exit

Process finished with exit code 0