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
There
Once
Was
A
Dog
Who
Liked
To
Eat
>>> print first
There
>>> print last
Eat
>>> print 3
Was
>>> print 6
Who
>>> swap 2 4
>>> display
There
A
Was
Once
Dog
Who
Liked
To
Eat
>>> swap 4 5
>>> display
There
A
Was
Dog
Once
Who
Liked
To
Eat
>>> add first the 
>>> add last he
>>> displayy
### Unrecognizable command: displayy
>>> display
the
There
A
Was
Dog
Once
Who
Liked
To
Eat
he
>>> exit