CS1 Standard Demo Page

The following text was written to the standard output stream when the WordList.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
monitor
pizza
what
phone
mouse
keyboard
>>> swap 1 10
>>> display
keyboard
bye
hello
goodbye
monitor
pizza
what
phone
mouse
hi
>>> 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 dog
>>> add last cat
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
dog
keyboard
bye
hello
goodbye
monitor
pizza
what
phone
mouse
hi
cat
>>> exit