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
23
11
7
74
15
79
41
59
17
90
60
6
>>> print first
23
>>> print last
6
>>> print 3
7
>>> print 5
15
>>> swap 5 7
>>> display
23
11
7
74
41
79
15
59
17
90
60
6
>>> swap 10 11
>>> display
23
11
7
74
41
79
15
59
17
60
90
6
>>> 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
>>> kj
### Unrecognizable command: kj
>>> display
100
23
11
7
74
41
79
15
59
17
60
90
6
200
>>> exit