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
45
411
229
296
2
62
118
466
306
49
>>> print first
45
>>> print last
49
>>> print 3
229
>>> print 10
49
>>> swap 5 7
>>> display
45
411
229
296
118
62
2
466
306
49
>>> swap 1 10
>>> display
49
411
229
296
118
62
2
466
306
45
>>> 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
49
411
229
296
118
62
2
466
306
45
200
>>> exit