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 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
>>> display
All
We
Don't
Okay
Wow
You
Need
Next
Year
Always
Yes
No
More
Less
Now
>>> print 3
Don't
>>> print 12
No
>>> swap 1 15
>>> display
Now
We
Don't
Okay
Wow
You
Need
Next
Year
Always
Yes
No
More
Less
All
>>> swap 5 7
>>> display
Now
We
Don't
Okay
Need
You
Wow
Next
Year
Always
Yes
No
More
Less
All
>>> 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 first How
>>> add last Space
>>> showWords
### Unrecognizable command: showWords
>>> display
How
Now
We
Don't
Okay
Need
You
Wow
Next
Year
Always
Yes
No
More
Less
All
Space
>>> exit