CS1 Standard Demo Page

The following text was written to the standard output stream when the TheNumberList.java 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
5
16
32
3
12
72
31
11
33
10
4
8
1
17
20
>>> print first
5
>>> print last
20
>>> print 3
32
>>> print 12
8
>>> swap 5 7
>>> display
5
16
32
3
31
72
12
11
33
10
4
8
1
17
20
>>> swap 1 15
>>> display
20
16
32
3
31
72
12
11
33
10
4
8
1
17
5
>>> 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
>>> show
### Unrecognizable command: show
>>> display
100
20
16
32
3
31
72
12
11
33
10
4
8
1
17
5
200
>>> exit