CS1 Standard Demo Page

The following text was written to the standard output stream when the arrayplay/WordList.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=38293:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/dvanripe/IdeaProjects/CS1/out/production/CS1:/home/dvanripe/Downloads/SimplePainter.jar:/home/dvanripe/Downloads/SimpleComposer.jar:/home/dvanripe/Downloads/jfugue-4.0.3-with-musicxml.jar arrayplay.WordList
>>> display
potato
ranch
phone
smart
dead
alive
computer
program
manipulate
depression
survival
happiness
overcome
strength
yeet
>>> print first
potato
>>> print last
yeet
>>> print 1d
potato
>>> print 15
yeet
>>> swap 5 7
>>> isplay
### Unrecognizable command: isplay
>>> display
potato
ranch
phone
smart
computer
alive
dead
program
manipulate
depression
survival
happiness
overcome
strength
yeet
>>> swap 1 15
>>> display
yeet
ranch
phone
smart
computer
alive
dead
program
manipulate
depression
survival
happiness
overcome
strength
potato
>>> 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 100
>>> add lasts 200
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
100
yeet
ranch
phone
smart
computer
alive
dead
program
manipulate
depression
survival
happiness
overcome
strength
potato
200
>>> exit

Process finished with exit code 0