CS1 Standard Demo Page

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

>>> 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
hi
bye
hello
goodbye
what
pizza
monitor
phone
mouse
keyboard
>>> print first
hi
>>> print last
keyboard
>>> swap 5 7
>>> display
hi
bye
hello
goodbye
what
phone
monitor
pizza
mouse
keyboard
>>> swap 1 9
>>> display
hi
keyboard
hello
goodbye
what
phone
monitor
pizza
mouse
bye
>>> add first bob
>>> add last larry
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
bob
hi
keyboard
hello
goodbye
what
phone
monitor
pizza
mouse
bye
larry
>>> exit