CS1 Standard Demo Page

The following text was written to the standard output stream when the NumberList program was executed from IntelliJ.

>>> diplay
### Unrecognizable command: diplay
>>> display
2
9
15
36
4
78
8
14
18
56
90
75
7
45
>>> print first
2
>>> print last
45
>>> print 3
15
>>> print 11
90
>>> swap 5 7
>>> display
2
9
15
36
8
78
4
14
18
56
90
75
7
45
>>> 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 200
>>> add last 100
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
200
2
9
15
36
8
78
4
14
18
56
90
75
7
45
100
>>> exit

Process finished with exit code 0