CS1 Standard Demo Page

The following text was written to the standard output stream when the NumberListDemo.html 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
1
2
3
4
5
6
7
8
9
10
>>> print first
1
>>> print last
10
>>> print 3
3
>>> print 7
7
>>> swap 5 7
>>> display
1
2
3
4
7
6
5
8
9
10
>>> swap 1 10
>>> display
10
2
3
4
7
6
5
8
9
1
>>> 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 239
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
100
10
2
3
4
7
6
5
8
9
1
239
>>> exit