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 word (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 Lì a casa il cuore sentirai >>> print first Una >>> print last sentirai >>> print 3 che >>> print 18 cuore >>> swap 5 7 >>> display Una volta che avrai volo, il Spiccato deciderai Sguardo verso il ciel, saprai Lì a casa il cuore sentirai >>> swap 1 18 >>> display cuore volta che avrai volo, il Spiccato deciderai Sguardo verso il ciel, saprai Lì a casa il Una sentirai >>> help HELP - display a 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 number to the list (FIRST;LAST) EXIT - terminate execution of the program >>> add first 100 >>> ### Unrecognizable command: 100 >>> add last 200 >>> add first 100 a >>> display a 100 cuore volta che avrai volo, il Spiccato deciderai Sguardo verso il ciel, saprai Lì a casa il Una sentirai 200 >>> exit Process finished with exit code 0