CS1 Standard Demo Page

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

>>> display
ancient
pyramid
mathematics
integral
book
chapter
french
language
civilization
medical
bear
paw
>>> add
LAST
pharaoh
>>> display
ancient
pyramid
mathematics
integral
book
chapter
french
language
civilization
medical
bear
paw
pharaoh
>>> swap 
1
10
>>> display
medical
pyramid
mathematics
integral
book
chapter
french
language
civilization
ancient
bear
paw
pharaoh
>>> 
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
10
### invalid operand for add command
>>> exit

Process finished with exit code 0