CS1 Standard Demo Page

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

run:

The original list of numbers...
12
14
56
5
3
2
65
654
456
432
2
4
>>> 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
>>> print first
12
>>> print last
4
>>> print 3
56
>>> swap 1 3
>>> add first 1111
>>> add last 9999
>>> display
1111
56
14
12
5
3
2
65
654
456
432
2
4
9999
>>> exit
BUILD SUCCESSFUL (total time: 50 seconds)