CS1 Standard Demo Page

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

>>> display
dog
cat
beaver
hamster
sloth
elephant
cow
pig
parrot
dolphin
frog
lion
rabbit
crocodile
worm
>>>  add last 5
>>> display
dog
cat
beaver
hamster
sloth
elephant
cow
pig
parrot
dolphin
frog
lion
rabbit
crocodile
worm
5
>>>  add  first bat
>>> display
bat
dog
cat
beaver
hamster
sloth
elephant
cow
pig
parrot
dolphin
frog
lion
rabbit
crocodile
worm
5
>>>  swap 2 4 
>>> display
bat
beaver
cat
dog
hamster
sloth
elephant
cow
pig
parrot
dolphin
frog
lion
rabbit
crocodile
worm
5
>>>  print
4
dog
>>>  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
>>>  exit

Process finished with exit code 0