CS1 Standard Demo Page

The following text was written to the standard output stream when the WordList.html 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
Cherry
Strawberry
Apple
Grape
Banana
Lemon
Grapefruit
Lime
Kiwi
Watermelon
Cantaloupe
Pineapple
Orange
Pear
>>> print 1
Cherry
>>> print 4
Grape
>>> print first
Cherry
>>> print last
Pear
>>> 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 9 10
>>> display
Cherry
Strawberry
Apple
Grape
Banana
Lemon
Grapefruit
Lime
Watermelon
Kiwi
Cantaloupe
Pineapple
Orange
Pear
>>> 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 mango
>>> add last peach
>>> display
mango
Cherry
Strawberry
Apple
Grape
Banana
Lemon
Grapefruit
Lime
Watermelon
Kiwi
Cantaloupe
Pineapple
Orange
Pear
peach
>>> exit

Process finished with exit code 0