WordList Demo Page

The following text was written to the standard output stream when the WordList program was executed from IntelliJ. The following commands were run in this order.

help

display

print first

print last

print 3

print 8

swap 5 7

display

swap 1 9

display

help

add first Hello

add last Goodbye

showword

display

exit

All commands appear after ">>>"

>>> 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
The
quick
brown
fox
jumped
over
the
lazy
dog
>>> print first
The
>>> print last
dog
>>> print 3
brown
>>> print 8
lazy
>>> swap 5 7 
>>> display
The
quick
brown
fox
the
over
jumped
lazy
dog
>>> swap 1 9 
>>> display
dog
quick
brown
fox
the
over
jumped
lazy
The
>>> 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 Hello 
>>> add last Goodbye
>>> showwords
### Unrecognizable command: showwords
>>> display
Hello
dog
quick
brown
fox
the
over
jumped
lazy
The
Goodbye
>>> exit

Process finished with exit code 0