CS1 Standard Demo Page

The following text was written to the standard output stream when the Number List 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
22
44
66
88
110
132
154
176
198
220
>>> print first
22
>>> print last
220
>>> print 3
66
>>> print 9
198
>>> swap 5 7
>>> display
22
44
66
88
154
132
110
176
198
220
>>> swap 1 10
>>> display
220
44
66
88
154
132
110
176
198
22
>>> 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 100
>>> add last 200
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
100
220
44
66
88
154
132
110
176
198
22
200
>>> exit