CS1 Standard Demo Page

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

#>>> 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
Hey
Moon
Please
Forget
To
fall
Down
Hey
Moon
Don't
you
Go
down
Panic!
At
The
Disco
>>> add first hello
>>> display
hello
Hey
Moon
Please
Forget
To
fall
Down
Hey
Moon
Don't
you
Go
down
Panic!
At
The
Disco
>>> add last Dance
>>> display
hello
Hey
Moon
Please
Forget
To
fall
Down
Hey
Moon
Don't
you
Go
down
Panic!
At
The
Disco
Dance
>>> swap 3 6
>>> display
hello
Hey
To
Please
Forget
Moon
fall
Down
Hey
Moon
Don't
you
Go
down
Panic!
At
The
Disco
Dance
>>> print 2
Hey
>>> exit