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 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
ball
game
data
tall
computer
laugh
sky
even
odd
code
program
practice
work
fail
success
>>> print first
ball
>>> print last
success
>>> print 3
data
>>> print 18
null
>>> swap 5 7
>>> display
ball
game
data
tall
sky
laugh
computer
even
odd
code
program
practice
work
fail
success
>>> swap 1 18
>>> display
null
game
data
tall
sky
laugh
computer
even
odd
code
program
practice
work
fail
success
>>> 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 100
>>> add last 200
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
100
null
game
data
tall
sky
laugh
computer
even
odd
code
program
practice
work
fail
success
200
>>> exit
BUILD SUCCESSFUL (total time: 1 minute 29 seconds)