CS1 Standard Demo Page

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

>>> display
ancient
pyramid
mathematics
integral
book
chapter
french
language
civilization
medical
bear
paw
>>> add
FIRST
tiger
>>> add
LAST
lion
>>> display
tiger
ancient
pyramid
mathematics
integral
book
chapter
french
language
civilization
medical
bear
paw
lion
>>> 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
3
5
>>> display
tiger
ancient
integral
mathematics
pyramid
book
chapter
french
language
civilization
medical
bear
paw
lion
>>> print 
FIRST
tiger
>>> exit

Process finished with exit code 0