CS1 Standard Demo Page

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

>>> display
inflate
stomach
transfer
lettuce
blade
beetle
suggestion
skate
damage
sell
forbid
soar
>>> print first
inflate
>>> print last
soar
>>> print 3
transfer
>>> print 12
soar
>>> swap 5 7
>>> display
inflate
stomach
transfer
lettuce
suggestion
beetle
blade
skate
damage
sell
forbid
soar
>>> swap 1 12
>>> display
soar
stomach
transfer
lettuce
suggestion
beetle
blade
skate
damage
sell
forbid
inflate
>>> 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
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
 hello
soar
stomach
transfer
lettuce
suggestion
beetle
blade
skate
damage
sell
forbid
inflate
 goodbye
>>> exit