WordList Demo

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 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 execution of the program
>>> display
Una
volta
che
avrai
Spiccato
il
volo,
deciderai
Sguardo
verso
il
ciel,
saprai
>>> print first
Una
>>> print last
saprai
>>> print 3
che
>>> print 19
null
>>> print 18
null
>>> swap 5 7
>>> display
Una
volta
che
avrai
volo,
il
Spiccato
deciderai
Sguardo
verso
il
ciel,
saprai
>>> swap 1 18
>>> display
null
volta
che
avrai
volo,
il
Spiccato
deciderai
Sguardo
verso
il
ciel,
saprai
>>> 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 execution of the program
>>> add first 100
>>> add last 200
>>> showWords
### Unrecognizable command: showWords
>>> display
100
null
volta
che
avrai
volo,
il
Spiccato
deciderai
Sguardo
verso
il
ciel,
saprai
200
>>> exit

Process finished with exit code 0