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
hello
goodbye
lastly
snow
rain
man
woman
charge
point
bottle
thirty
phone
computer
program
>>> add first normal
>>> add last number
>>> display
normal
hello
goodbye
lastly
snow
rain
man
woman
charge
point
bottle
thirty
phone
computer
program
number
>>> swap 1 15
>>> swap 5 7
>>> display
program
hello
goodbye
lastly
man
rain
snow
woman
charge
point
bottle
thirty
phone
computer
normal
number
>>> exit