CS1 Standard Demo Page

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

>>> display
Hello
Nice
Too
Meet
You
Dear
You
Are
Somebody
See
You
Soon
>>> add
FIRST
Tomato
>>> add
LAST
Salad
>>> display
Tomato
Hello
Nice
Too
Meet
You
Dear
You
Are
Somebody
See
You
Soon
Salad
>>> swap
1
5
>>> display
Meet
Hello
Nice
Too
Tomato
You
Dear
You
Are
Somebody
See
You
Soon
Salad
>>> 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
8
### invalid operand for add command
>>> exit