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 10
Worst
>>> swap 5 7
>>> display
It
Was
The
Best
It
Times
Of
Was
The
Worst
Of
Times
>>> swap 1 9
>>> display
The
Was
The
Best
It
Times
Of
Was
It
Worst
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 sldldfs
>>> add last gjjgj
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
sldldfs
The
Was
The
Best
It
Times
Of
Was
It
Worst
Of
Times
gjjgj
>>> exit