CS1 Standard Demo Page

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

nThe original list of numbers ...
100
19
27
56
45
73
29
88
95
67
325
>>> 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
>>> swap 1 5
>>> display
45
19
27
56
100
73
29
88
95
67
325
>>> print first
45
>>> add last
56
>>> display
45
19
27
56
100
73
29
88
95
67
325
56
>>> exit