CS1 Standard Demo Page

The following text was written to the standard output stream when the ? 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
The
Cat
In
The
Hat
Went
To
The
Store
To
Buy
Mice
>>> print first
The
>>> print last 
Mice
>>> print 3
In
>>> print 7
To
>>> swap 2 12
>>> display
The
Mice
In
The
Hat
Went
To
The
Store
To
Buy
Cat
>>> swap 9 11
>>> display
The
Mice
In
The
Hat
Went
To
The
Buy
To
Store
Cat
>>> add first and 
>>> add last food 
>>> showwords
### Unrecognizable command: showwords
>>> display
and
The
Mice
In
The
Hat
Went
To
The
Buy
To
Store
Cat
food
>>> exit

Process finished with exit code 0