CS1 Standard Demo Page

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

>>> 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
It
Was
The
Best
Of
Times
It
Was
The
Worst
Of
Times
>>> print first
It
>>> print last
Times
>>> print 3
The
>>> print 11
Of
>>> swap 3 8
>>> display
It
Was
Was
Best
Of
Times
It
The
The
Worst
Of
Times
>>> swap 2 10
>>> display
It
Worst
Was
Best
Of
Times
It
The
The
Was
Of
Times
>>> 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
>>> add first dskjf
>>> add last kljljl
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
dskjf
It
Worst
Worst
Was
Was
Best
Best
Of
Of
Times
Times
It
kljljl
>>> exit