CS1 Standard Demo Page

The following text was written to the standard output stream when the WordList.java program was executed from IntelliJ.

nThe original list of words ...
hello0
I1
hope2
this3
program4
works5
it6
was7
kind8
of9
confusing10
but11
that's12
fine13
>>> help
HELP - display a 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 (FIRST;LAST)
EXIT - terminate execution of the program
>>> display
hello0
I1
hope2
this3
program4
works5
it6
was7
kind8
of9
confusing10
but11
that's12
fine13
>>> swap 1 13
>>> display
that's0
I1
hope2
this3
program4
works5
it6
was7
kind8
of9
confusing10
but11
hello12
fine13
>>> print first
that's
>>> add last snoop
snoop
>>> ### Unrecognizable command: snoop
>>> display last
that's0
I1
hope2
this3
program4
works5
it6
was7
kind8
of9
confusing10
but11
hello12
fine13
snoop14
>>> ### Unrecognizable command: last
>>> exit