CS1 Standard Demo Page

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

run:

The original list of words...
Red
Yellow
Blue
Green
Hello
Goodbye
Staple
Computer
Mouse
Keyboard
Desk
School
>>> 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
>>> print first
Red
>>> print last
School
>>> print 3
Blue
>>> swap 1 3
>>> add first first
>>> add last last
>>> display
first
Blue
Yellow
Red
Green
Hello
Goodbye
Staple
Computer
Mouse
Keyboard
Desk
School
last
>>> exit
BUILD SUCCESSFUL (total time: 40 seconds)