CS1 Standard Demo Page

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

>>> display
10
2
3
43
85
41
58
2
7
5
3
>>> swap
0 1
>>> display
2
10
3
43
85
41
58
2
7
5
3
>>> print
0
2
>>> add first 
100
>>> add last
200
>>> display
100
2
10
3
43
85
41
58
2
7
5
3
200
>>> hello
### Unrecognizable command: hello
>>> 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
>>> exit