CS1 Standard Demo Page

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

>>>help
HELP    - display menu of commands
DISPLAY - display the list of words
PRINT   - print a word (FIRST; LAST; nth)
SWAP    - exchange two elements (nth; mth)
ADD     - add a word to the list
EXIT    - terminate execution of the program

>>>display
PHANTOM
GHOST
WRATH
CHIRON
DIVO
VOITURE
NOIRE
CENTENARIO
HUAYRA
ZONDA
REGERA

>>>print first
PHANTOM

>>>print last
REGERA

>>>print 3
WRATH

>>>print 10
ZONDA

>>>swap 1 10

>>>display
ZONDA
GHOST
WRATH
CHIRON
DIVO
VOITURE
NOIRE
CENTENARIO
HUAYRA
PHANTOM
REGERA

>>>add first cars

>>>add last sports

>>>display
cars
ZONDA
GHOST
WRATH
CHIRON
DIVO
VOITURE
NOIRE
CENTENARIO
HUAYRA
PHANTOM
REGERA
sports

>>>exit

Process finished with exit code 0