CS1 Standard Demo Page

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

	    >>> display
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
>>> print last
15
>>> print first
1
>>> print 2
2
>>> swap 1 2 
>>> display
2
1
3
4
5
6
7
8
9
10
11
12
13
14
15
>>> add last 16
>>> add first 0
>>> display
0
2
1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
>>> 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

Process finished with exit code 0