CS1 Standard Demo Page

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

run:
>>> 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
1
2
3
4
5
6
7
10
11
12
13
17
77
27
24
>>> print first
1
>>> print last
24
>>> print 3
3
>>> print 18
0
>>> swap 5 7
>>> display
1
2
3
4
7
6
5
10
11
12
13
17
77
27
24
>>> swap 1 18
>>> display
0
2
3
4
7
6
5
10
11
12
13
17
77
27
24
>>> 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
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
100
0
2
3
4
7
6
5
10
11
12
13
17
77
27
24
200
>>> exit
BUILD SUCCESSFUL (total time: 1 minute 29 seconds)