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
6
7
5
3
5
6
4
4
5
6
4
3
2
5
6
>>> print first 
6
>>> print last 
6
>>> print 3 
5
>>> print 10
6
>>> sqap 4 11
>>> swap 4 11
>>> display
6
7
5
4
5
6
4
4
5
6
3
3
2
5
6
>>> add first 2
>>> add last 3
>>> display
2
6
7
5
4
5
6
4
4
5
6
3
3
2
5
6
3
>>> exit

Process finished with exit code 0