CS1 Standard Demo Page

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

>>> display
10
20
30
40
50
60
70
80
90
100
110
120
>>> add
FIRST
10
>>> display
10
10
20
30
40
50
60
70
80
90
100
110
120
>>> add
LAST
10
>>> display
10
10
20
30
40
50
60
70
80
90
100
110
120
10
>>> swap
1
6
>>> display
50
10
20
30
40
10
60
70
80
90
100
110
120
10
>>> 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
>>> print
5
40
>>>  exit

Process finished with exit code 0