WordList.java.html

The following text was written to the standard output stream when the ? program was executed from Netbeans.

/usr/lib/jvm/java-1.11.0-openjdk-amd64/bin/java -javaagent:/opt/intellij-idea-community/lib/idea_rt.jar=42457:/opt/intellij-idea-community/bin -Dfile.encoding=UTF-8 -classpath /home/vahir/IdeaProjects/CS1/out/production/CS1:/home/vahir/Desktop/SimplePainter.jar:/home/vahir/Desktop/SimpleComposer.jar:/home/vahir/Desktop/jfugue-4.0.3-with-musicxml.jar arraylistplay.WordList
>>>display
blue
green
yellow
pink
red
orange
purple
white
brown
black
gray
gold
silver
violet
navyblue

>>>print first
blue

>>>print last
navyblue

>>>swap 1 15

>>>display
navyblue
green
yellow
pink
red
orange
purple
white
brown
black
gray
gold
silver
violet
blue

>>>add first red-orange

>>>display
red-orange
navyblue
green
yellow
pink
red
orange
purple
white
brown
black
gray
gold
silver
violet
blue

>>>help
HELP    - display menu of commands
DISPLAY - display the list of words
PRINT   - print a word (FIRST; LAST; nth)
SWAP    - exchange two elements (nth; mth)
ADD     - add a word to the list
EXIT    - terminate execution of the program

>>>exit

Process finished with exit code 0