CS1 Standard Demo Page

The following text was written to the standard output stream when the NumberList.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
2
50
15
9
78
49
4
74
32
357
56
34
87
12
78
>>> print first
2
>>> print last
78
>>> print 3
15
>>> print 15
78
>>> swap 5 7
>>> display
2
50
15
9
4
49
78
74
32
357
56
34
87
12
78
>>> swap 1 15
>>> display
78
50
15
9
4
49
78
74
32
357
56
34
87
12
2
>>> 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
78
50
15
9
4
49
78
74
32
357
56
34
87
12
2
200
>>> exit