CS1 Standard Demo Page

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

run:
>>> HELP
HELP    - display 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
Dallas
NewYork
Chicago
LosAngeles
LasVegas
Clevland
Syracuse
Buffalo
Ithaca
Oswego
Arlington
Boston
NewJersey
SanJose
Sacramento

>>> print first
Dallas

>>>print last
Sacramento

>>> swap 1 2

>>> display
NewYork
Dallas
Chicago
LosAngeles
LasVegas
Clevland
Syracuse
Buffalo
Ithaca
Oswego
Arlington
Boston
NewJersey
SanJose
Sacramento

>>> add First Houstan

>>> add Last WashingtonDC

>>>display
Houstan
NewYork
Dallas
Chicago
LosAngeles
LasVegas
Clevland
Syracuse
Buffalo
Ithaca
Oswego
Arlington
Boston
NewJersey
SanJose
Sacramento
WashingtonDC

>>>