CS1 Standard Demo Page

The following text was written to the standard output stream when the WordList.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
3
123
543
7586
90
4
7
34
25
267
>>> print first
45
>>> print last
267
>>> print 7
4
>>> print 4
543
>>> swap 2 6
>>> display
45
90
123
543
7586
3
4
7
34
25
267
>>> swap
7 10
>>> display
45
90
123
543
7586
3
25
7
34
4
267
>>> 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 110
>>> add last 784
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
110
45
90
123
543
7586
3
25
7
34
4
267
784
>>> exit>>> 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
3
123
543
7586
90
4
7
34
25
267
>>> print first
45
>>> print last
267
>>> print 7
4
>>> print 4
543
>>> swap 2 6
>>> display
45
90
123
543
7586
3
4
7
34
25
267
>>> swap
7 10
>>> display
45
90
123
543
7586
3
25
7
34
4
267
>>> 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 110
>>> add last 784
>>> shownumbers
### Unrecognizable command: shownumbers
>>> display
110
45
90
123
543
7586
3
25
7
34
4
267
784
>>> exit