CS1 Standard Demo Page

The following text was written to the standard output stream when the NumberList.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
3
6
9
14
76
10
57
99
44
67
23
39
51
>>> add first 11
>>> add last 95
>>> display
11
3
6
9
14
76
10
57
99
44
67
23
39
51
95
>>> swap 1 13
>>> swap 5 7
>>> display
39
3
6
9
10
76
14
57
99
44
67
23
11
51
95
>>> exit