The following text was written to the standard output stream when the ? program was executed from IntelliJ.
>>> display
who
what
where
when
how
because
why
explain
reason
arugment
>>> print first
who
>>> print last
arugment
>>> add first
now
>>> display
now
who
what
where
when
how
because
why
explain
reason
arugment
>>> help
HELP - display a menu of commands
DISPLAY - display the list of words
PRINT - print a number (FIRST; LAST; nth)
SWAP - exchange two elements (nth;mth)
ADD - add a number to the list (FIRST;LAST
EXIT - terminate the execution of the program
>>> exit
Process finished with exit code 0